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>
This commit is contained in:
Родитель
da0721cc26
Коммит
1011f2b09a
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче