Re: [PATCH] net/ethtool: Replace memset with compiler directive

2017-06-08 Thread David Miller
From: Yuval Shaia Date: Thu, 8 Jun 2017 16:32:21 +0300 > Take advantage of compiler variable zero-ing and remove calls to memset. > > Signed-off-by: Yuval Shaia That construct looks so ugly, also the memset()'s in some cases are constrained to the basic blockwhere the variable is used, avoidi

[PATCH] net/ethtool: Replace memset with compiler directive

2017-06-08 Thread Yuval Shaia
Take advantage of compiler variable zero-ing and remove calls to memset. Signed-off-by: Yuval Shaia --- net/core/ethtool.c | 21 +++-- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/net/core/ethtool.c b/net/core/ethtool.c index 03111a2..051af09 100644 --- a/net/co