diff options
author | Hariprasad Kelam <hariprasad.kelam@gmail.com> | 2019-06-18 23:25:16 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-06-20 14:39:15 +0200 |
commit | 1011f2b09aca841938712e92a0fdde50220b773f (patch) | |
tree | f885b8454c63a39f90222892256bd9d8fe4f26b4 /drivers/staging/rtl8192u | |
parent | da0721cc2620e18d325a2bd050df1c74e10b975e (diff) | |
download | linux-1011f2b09aca841938712e92a0fdde50220b773f.tar.gz linux-1011f2b09aca841938712e92a0fdde50220b773f.tar.bz2 linux-1011f2b09aca841938712e92a0fdde50220b773f.zip |
staging: rtl8192u: ieee80211: 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/rtl8192u')
-rw-r--r-- | drivers/staging/rtl8192u/ieee80211/ieee80211_module.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_module.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_module.c index 3532ea9a66c7..4a6c3f674431 100644 --- a/drivers/staging/rtl8192u/ieee80211/ieee80211_module.c +++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_module.c @@ -109,7 +109,6 @@ struct net_device *alloc_ieee80211(int sizeof_priv) } ieee = netdev_priv(dev); - memset(ieee, 0, sizeof(struct ieee80211_device) + sizeof_priv); ieee->dev = dev; err = ieee80211_networks_allocate(ieee); |