projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78f1ccc
)
r8152: remove clearing the memory to zero for netdev priv
author
hayeswang
<hayeswang@realtek.com>
Fri, 16 Aug 2013 08:09:32 +0000
(16:09 +0800)
committer
David S. Miller
<davem@davemloft.net>
Tue, 20 Aug 2013 07:08:21 +0000
(
00:08
-0700)
Remove memset(tp, 0, sizeof(*tp));
Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/usb/r8152.c
b/drivers/net/usb/r8152.c
index ef2498c6d46b48c5157e5c48b973381642e0017d..c13662b31da10de18c7fd6154109ed45d0243aad 100644
(file)
--- 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);