diff options
author | hayeswang <hayeswang@realtek.com> | 2013-08-16 12:09:32 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-08-20 11:08:21 +0400 |
commit | 197d439eec005564648ddd48a76ee5ddf4c15e80 (patch) | |
tree | 8a360f67a627688e582c7e91e13fc030f56c5466 /drivers/net/usb/r8152.c | |
parent | 78f1ccc4f82cd7bbb65b0e938ed0dfd81e902fe0 (diff) | |
download | linux-197d439eec005564648ddd48a76ee5ddf4c15e80.tar.xz |
r8152: remove clearing the memory to zero for netdev priv
Remove memset(tp, 0, sizeof(*tp));
Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb/r8152.c')
-rw-r--r-- | drivers/net/usb/r8152.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index ef2498c6d46b..c13662b31da1 100644 --- a/drivers/net/usb/r8152.c +++ b/drivers/net/usb/r8152.c @@ -2105,7 +2105,6 @@ static int rtl8152_probe(struct usb_interface *intf, SET_NETDEV_DEV(netdev, &intf->dev); tp = netdev_priv(netdev); - memset(tp, 0, sizeof(*tp)); tp->msg_enable = 0x7FFF; tasklet_init(&tp->tl, bottom_half, (unsigned long)tp); |