usbnet: don't initialize transfer buffer before submit status URB
authortom.leiming@gmail.com <tom.leiming@gmail.com>
Mon, 11 Jun 2012 15:19:45 +0000 (15:19 +0000)
committerDavid 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

index 205247efee62d1f75abb945f19007d64090f72b7..ac2e4936b4212c5568327b74fb79f888569795ad 100644 (file)
@@ -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,