diff options
author | Oliver Neukum <oneukum@suse.de> | 2008-12-19 02:00:59 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-19 02:00:59 -0500 |
commit | c94cb314503a69492bf4455dce4f6d300cff0851 (patch) | |
tree | f049d27da8345fae393916c0ec5be0aed94b65a7 /drivers/net/usb/smsc95xx.c | |
parent | ab5024ab23b78c86a0a1425defcdde48710fe449 (diff) |
net: prepare usb net drivers for addition of status as a parameter
USB is going to switch the signature of the callbacks to
void callback(struct urb *urb, int status)
This patch will ease the transition.
Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb/smsc95xx.c')
-rw-r--r-- | drivers/net/usb/smsc95xx.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/usb/smsc95xx.c b/drivers/net/usb/smsc95xx.c index fed22ffedd57..5574abe29c73 100644 --- a/drivers/net/usb/smsc95xx.c +++ b/drivers/net/usb/smsc95xx.c | |||
@@ -311,9 +311,10 @@ static void smsc95xx_async_cmd_callback(struct urb *urb, struct pt_regs *regs) | |||
311 | { | 311 | { |
312 | struct usb_context *usb_context = urb->context; | 312 | struct usb_context *usb_context = urb->context; |
313 | struct usbnet *dev = usb_context->dev; | 313 | struct usbnet *dev = usb_context->dev; |
314 | int status = urb->status; | ||
314 | 315 | ||
315 | if (urb->status < 0) | 316 | if (status < 0) |
316 | devwarn(dev, "async callback failed with %d", urb->status); | 317 | devwarn(dev, "async callback failed with %d", status); |
317 | 318 | ||
318 | complete(&usb_context->notify); | 319 | complete(&usb_context->notify); |
319 | 320 | ||