Commit 1011f2b0 authored by Hariprasad Kelam's avatar Hariprasad Kelam Committed by Greg Kroah-Hartman

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: default avatarHariprasad Kelam <hariprasad.kelam@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent da0721cc
...@@ -109,7 +109,6 @@ struct net_device *alloc_ieee80211(int sizeof_priv) ...@@ -109,7 +109,6 @@ struct net_device *alloc_ieee80211(int sizeof_priv)
} }
ieee = netdev_priv(dev); ieee = netdev_priv(dev);
memset(ieee, 0, sizeof(struct ieee80211_device) + sizeof_priv);
ieee->dev = dev; ieee->dev = dev;
err = ieee80211_networks_allocate(ieee); err = ieee80211_networks_allocate(ieee);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment