提交 197d439e 编写于 作者: H hayeswang 提交者: David S. Miller

r8152: remove clearing the memory to zero for netdev priv

Remove memset(tp, 0, sizeof(*tp));
Signed-off-by: NHayes Wang <hayeswang@realtek.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 78f1ccc4
...@@ -2105,7 +2105,6 @@ static int rtl8152_probe(struct usb_interface *intf, ...@@ -2105,7 +2105,6 @@ static int rtl8152_probe(struct usb_interface *intf,
SET_NETDEV_DEV(netdev, &intf->dev); SET_NETDEV_DEV(netdev, &intf->dev);
tp = netdev_priv(netdev); tp = netdev_priv(netdev);
memset(tp, 0, sizeof(*tp));
tp->msg_enable = 0x7FFF; tp->msg_enable = 0x7FFF;
tasklet_init(&tp->tl, bottom_half, (unsigned long)tp); tasklet_init(&tp->tl, bottom_half, (unsigned long)tp);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册