mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-03 00:54:09 +08:00
bna: Remove unnecessary memset(,0,)
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>
This commit is contained in:
parent
464143c911
commit
35ab7b798a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user