diff options
author | Oliver Neukum <oneukum@suse.de> | 2008-12-18 23:00:59 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-18 23:00:59 -0800 |
commit | c94cb314503a69492bf4455dce4f6d300cff0851 (patch) | |
tree | f049d27da8345fae393916c0ec5be0aed94b65a7 /drivers/net/usb/dm9601.c | |
parent | ab5024ab23b78c86a0a1425defcdde48710fe449 (diff) | |
download | kernel-crypto-c94cb314503a69492bf4455dce4f6d300cff0851.tar.gz kernel-crypto-c94cb314503a69492bf4455dce4f6d300cff0851.tar.xz kernel-crypto-c94cb314503a69492bf4455dce4f6d300cff0851.zip |
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/dm9601.c')
-rw-r--r-- | drivers/net/usb/dm9601.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/usb/dm9601.c b/drivers/net/usb/dm9601.c index db3377dae9d..edd244f3acb 100644 --- a/drivers/net/usb/dm9601.c +++ b/drivers/net/usb/dm9601.c @@ -123,10 +123,11 @@ static int dm_write_reg(struct usbnet *dev, u8 reg, u8 value) static void dm_write_async_callback(struct urb *urb) { struct usb_ctrlrequest *req = (struct usb_ctrlrequest *)urb->context; + int status = urb->status; - if (urb->status < 0) + if (status < 0) printk(KERN_DEBUG "dm_write_async_callback() failed with %d\n", - urb->status); + status); kfree(req); usb_free_urb(urb); |