staging: rtl8192e: rtllib_module: 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:
parent
42203fbe73
commit
da0721cc26
|
@ -83,7 +83,6 @@ struct net_device *alloc_rtllib(int sizeof_priv)
|
|||
return NULL;
|
||||
}
|
||||
ieee = (struct rtllib_device *)netdev_priv_rsl(dev);
|
||||
memset(ieee, 0, sizeof(struct rtllib_device) + sizeof_priv);
|
||||
ieee->dev = dev;
|
||||
|
||||
err = rtllib_networks_allocate(ieee);
|
||||
|
|
Loading…
Reference in New Issue