diff options
author | Hariprasad Kelam <hariprasad.kelam@gmail.com> | 2019-06-18 23:55:07 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-06-20 14:39:15 +0200 |
commit | 42203fbe73f24f276a135948cfb68749737673c9 (patch) | |
tree | 84ccefb6cef9ef974dc7292b6522514dd7668f24 /drivers/staging/wilc1000 | |
parent | 8fa2081030e73ecced862c0b6a3344c059fce531 (diff) | |
download | linux-42203fbe73f24f276a135948cfb68749737673c9.tar.gz linux-42203fbe73f24f276a135948cfb68749737673c9.tar.bz2 linux-42203fbe73f24f276a135948cfb68749737673c9.zip |
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>
Diffstat (limited to 'drivers/staging/wilc1000')
-rw-r--r-- | drivers/staging/wilc1000/wilc_netdev.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/wilc1000/wilc_netdev.c b/drivers/staging/wilc1000/wilc_netdev.c index ba78c08a17f1..c4efec277255 100644 --- a/drivers/staging/wilc1000/wilc_netdev.c +++ b/drivers/staging/wilc1000/wilc_netdev.c @@ -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"); |