staging: wilc1000: Remove redundant memset
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>alistair/sunxi64-5.4-dsi
parent
8fa2081030
commit
42203fbe73
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue