aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/usb/mcs7830.c
diff options
context:
space:
mode:
authorOliver Neukum <oneukum@suse.de>2008-12-19 02:00:59 -0500
committerDavid S. Miller <davem@davemloft.net>2008-12-19 02:00:59 -0500
commitc94cb314503a69492bf4455dce4f6d300cff0851 (patch)
treef049d27da8345fae393916c0ec5be0aed94b65a7 /drivers/net/usb/mcs7830.c
parentab5024ab23b78c86a0a1425defcdde48710fe449 (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/mcs7830.c')
-rw-r--r--drivers/net/usb/mcs7830.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/usb/mcs7830.c b/drivers/net/usb/mcs7830.c
index bbcc76ae3c9c..5385d66b306e 100644
--- a/drivers/net/usb/mcs7830.c
+++ b/drivers/net/usb/mcs7830.c
@@ -115,10 +115,11 @@ static int mcs7830_set_reg(struct usbnet *dev, u16 index, u16 size, void *data)
115static void mcs7830_async_cmd_callback(struct urb *urb) 115static void mcs7830_async_cmd_callback(struct urb *urb)
116{ 116{
117 struct usb_ctrlrequest *req = (struct usb_ctrlrequest *)urb->context; 117 struct usb_ctrlrequest *req = (struct usb_ctrlrequest *)urb->context;
118 int status = urb->status;
118 119
119 if (urb->status < 0) 120 if (status < 0)
120 printk(KERN_DEBUG "%s() failed with %d\n", 121 printk(KERN_DEBUG "%s() failed with %d\n",
121 __func__, urb->status); 122 __func__, status);
122 123
123 kfree(req); 124 kfree(req);
124 usb_free_urb(urb); 125 usb_free_urb(urb);