mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 15:01:13 +07:00
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:
parent
24ead29915
commit
072c0559e2
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user