projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
464143c
)
bna: Remove unnecessary memset(,0,)
author
Joe Perches
<joe@perches.com>
Wed, 12 Jan 2011 11:21:18 +0000
(11:21 +0000)
committer
David S. Miller
<davem@davemloft.net>
Thu, 13 Jan 2011 03:00:39 +0000
(19:00 -0800)
kzalloc'd memory doesn't need a memset to 0.
Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Rasesh Mody <rmody@brocade.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bna/bnad_ethtool.c
patch
|
blob
|
history
diff --git
a/drivers/net/bna/bnad_ethtool.c
b/drivers/net/bna/bnad_ethtool.c
index 99be5ae91991f84554faf98d682f31c75cbf3b0e..142d6047da2795c879b3b2d54c862ad7d30a7e86 100644
(file)
--- a/
drivers/net/bna/bnad_ethtool.c
+++ b/
drivers/net/bna/bnad_ethtool.c
@@
-275,7
+275,6
@@
bnad_get_drvinfo(struct net_device *netdev, struct ethtool_drvinfo *drvinfo)
ioc_attr = kzalloc(sizeof(*ioc_attr), GFP_KERNEL);
if (ioc_attr) {
- memset(ioc_attr, 0, sizeof(*ioc_attr));
spin_lock_irqsave(&bnad->bna_lock, flags);
bfa_nw_ioc_get_attr(&bnad->bna.device.ioc, ioc_attr);
spin_unlock_irqrestore(&bnad->bna_lock, flags);