Skip to content

Commit

Permalink
usbnet: don't initialize transfer buffer before submit status URB
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
tom.leiming@gmail.com authored and David S. Miller committed Jun 13, 2012
1 parent 24ead29 commit 072c055
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/net/usb/usbnet.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 072c055

Please sign in to comment.