summaryrefslogtreecommitdiff
path: root/drivers/net/usb
diff options
context:
space:
mode:
authortom.leiming@gmail.com <tom.leiming@gmail.com>2012-06-11 19:19:45 +0400
committerDavid S. Miller <davem@davemloft.net>2012-06-13 05:51:08 +0400
commit072c0559e26bc35700b3a70dffc230f00d9262b8 (patch)
tree64d336b035e9641de2bbb05085ac9a122a369282 /drivers/net/usb
parent24ead29915352d4689a5972c65307a073b229fb4 (diff)
downloadlinux-072c0559e26bc35700b3a70dffc230f00d9262b8.tar.xz
usbnet: don't initialize transfer buffer before submit status URB
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>
Diffstat (limited to 'drivers/net/usb')
-rw-r--r--drivers/net/usb/usbnet.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c
index 205247efee62..ac2e4936b421 100644
--- 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,