Commit 197d439e authored by hayeswang's avatar hayeswang Committed by David S. Miller

r8152: remove clearing the memory to zero for netdev priv

Remove memset(tp, 0, sizeof(*tp));
Signed-off-by: default avatarHayes Wang <hayeswang@realtek.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 78f1ccc4
......@@ -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);
......
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