Skip to content

Commit

Permalink
r8152: add comments
Browse files Browse the repository at this point in the history
Add comments.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
hayeswang authored and David S. Miller committed Aug 20, 2013
1 parent b1379d9 commit 7559fb2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/net/usb/r8152.c
Original file line number Diff line number Diff line change
Expand Up @@ -790,6 +790,9 @@ static void read_bulk_callback(struct urb *urb)
return;

netdev = tp->netdev;

/* When link down, the driver would cancel all bulks. */
/* This avoid the re-submitting bulk */
if (!netif_carrier_ok(netdev))
return;

Expand Down Expand Up @@ -1296,6 +1299,8 @@ static void bottom_half(unsigned long data)
if (!test_bit(WORK_ENABLE, &tp->flags))
return;

/* When link down, the driver would cancel all bulks. */
/* This avoid the re-submitting bulk */
if (!netif_carrier_ok(tp->netdev))
return;

Expand Down

0 comments on commit 7559fb2

Please sign in to comment.