diff options
author | tom.leiming@gmail.com <tom.leiming@gmail.com> | 2012-06-11 15:19:45 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-06-12 18:51:08 -0700 |
commit | 072c0559e26bc35700b3a70dffc230f00d9262b8 (patch) | |
tree | 64d336b035e9641de2bbb05085ac9a122a369282 /drivers | |
parent | 24ead29915352d4689a5972c65307a073b229fb4 (diff) |
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')
-rw-r--r-- | drivers/net/usb/usbnet.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c index 205247efee6..ac2e4936b42 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, |