Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit da0721cc authored by Hariprasad Kelam's avatar Hariprasad Kelam Committed by Greg Kroah-Hartman
Browse files

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: default avatarHariprasad Kelam <hariprasad.kelam@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 42203fbe
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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);