Skip to contentSkip to conversation

staging: wilc1000: Remove redundant memset

PATCH New Hariprasad Kelam 1 participant 1 message Jun 18, 2019 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: wilc1000: Remove redundant memset

alloc_etherdev function internally calls kvzalloc . So we may not need explicit memset after this call.

---
 drivers/staging/wilc1000/wilc_netdev.c | 1 -
 1 file changed, 1 deletion(-)
drivers/staging/wilc1000/wilc_netdev.c +0 -1
index ba78c08..c4efec2 100644
@@ -1010,7 +1010,6 @@ int wilc_netdev_init(struct wilc **wilc, struct device *dev, int io_type,
 		}
 
 		vif = netdev_priv(ndev);
-		memset(vif, 0, sizeof(struct wilc_vif));
 
 		if (i == 0) {
 			strcpy(ndev->name, "wlan%d");
Signature · 1 line
2.7.4