staging: wilc1000: Remove redundant memset
authorHariprasad Kelam <hariprasad.kelam@gmail.com>
Tue, 18 Jun 2019 18:25:07 +0000 (23:55 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Jun 2019 12:39:15 +0000 (14:39 +0200)
alloc_etherdev function internally calls kvzalloc . So we may not need
explicit memset after this call.

Signed-off-by: Hariprasad Kelam <hariprasad.kelam@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_netdev.c

index ba78c08..c4efec2 100644 (file)
@@ -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");