projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24ead29
)
usbnet: don't initialize transfer buffer before submit status URB
author
tom.leiming@gmail.com
<tom.leiming@gmail.com>
Mon, 11 Jun 2012 15:19:45 +0000
(15:19 +0000)
committer
David S. Miller
<davem@davemloft.net>
Wed, 13 Jun 2012 01:51:08 +0000
(18:51 -0700)
The line below in intr_complete isn't needed,
memset(urb->transfer_buffer, 0, urb->transfer_buffer_length);
so just remove it.
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/usbnet.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/usb/usbnet.c
b/drivers/net/usb/usbnet.c
index 205247efee62d1f75abb945f19007d64090f72b7..ac2e4936b4212c5568327b74fb79f888569795ad 100644
(file)
--- a/
drivers/net/usb/usbnet.c
+++ b/
drivers/net/usb/usbnet.c
@@
-209,7
+209,6
@@
static void intr_complete (struct urb *urb)
if (!netif_running (dev->net))
return;
- memset(urb->transfer_buffer, 0, urb->transfer_buffer_length);
status = usb_submit_urb (urb, GFP_ATOMIC);
if (status != 0)
netif_err(dev, timer, dev->net,