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>
This commit is contained in:
tom.leiming@gmail.com 2012-06-11 15:19:45 +00:00 committed by David S. Miller
parent 24ead29915
commit 072c0559e2

View 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,