summaryrefslogtreecommitdiffstats
path: root/drivers/net/usb/usbnet.c
diff options
context:
space:
mode:
authortom.leiming@gmail.com <tom.leiming@gmail.com>2012-06-11 17:19:45 +0200
committerDavid S. Miller <davem@davemloft.net>2012-06-13 03:51:08 +0200
commit072c0559e26bc35700b3a70dffc230f00d9262b8 (patch)
tree64d336b035e9641de2bbb05085ac9a122a369282 /drivers/net/usb/usbnet.c
parentusbnet: remove declaration for intr_complete (diff)
downloadlinux-072c0559e26bc35700b3a70dffc230f00d9262b8.tar.xz
linux-072c0559e26bc35700b3a70dffc230f00d9262b8.zip
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/usbnet.c')
-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,