diff options
author | Oliver Neukum <oliver@neukum.org> | 2010-07-02 15:51:55 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-07-06 03:50:55 +0200 |
commit | c31fd6c25c4619c0745b12cff842721a4bd4202c (patch) | |
tree | 2f2c0efc80a2bcb949d06a20f738068c63fcd516 /drivers/net/usb/ipheth.c | |
parent | ixgbe: use netif_<level> instead of netdev_<level> (diff) | |
download | linux-c31fd6c25c4619c0745b12cff842721a4bd4202c.tar.xz linux-c31fd6c25c4619c0745b12cff842721a4bd4202c.zip |
usbnet: remove direct access to urb->status
USB drivers should not use urb->status directly because
it is scheduled to become a parameter. This does the conversion
for drivers/net/usb
Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb/ipheth.c')
-rw-r--r-- | drivers/net/usb/ipheth.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/net/usb/ipheth.c b/drivers/net/usb/ipheth.c index 197c352c47fb..08e7b6abacdd 100644 --- a/drivers/net/usb/ipheth.c +++ b/drivers/net/usb/ipheth.c @@ -193,7 +193,7 @@ static void ipheth_rcvbulk_callback(struct urb *urb) case 0: break; default: - err("%s: urb status: %d", __func__, urb->status); + err("%s: urb status: %d", __func__, status); return; } @@ -222,16 +222,17 @@ static void ipheth_rcvbulk_callback(struct urb *urb) static void ipheth_sndbulk_callback(struct urb *urb) { struct ipheth_device *dev; + int status = urb->status; dev = urb->context; if (dev == NULL) return; - if (urb->status != 0 && - urb->status != -ENOENT && - urb->status != -ECONNRESET && - urb->status != -ESHUTDOWN) - err("%s: urb status: %d", __func__, urb->status); + if (status != 0 && + status != -ENOENT && + status != -ECONNRESET && + status != -ESHUTDOWN) + err("%s: urb status: %d", __func__, status); dev_kfree_skb_irq(dev->tx_skb); netif_wake_queue(dev->net); |