diff options
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 db3377dae9d5..edd244f3acb5 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) | |||
123 | static void dm_write_async_callback(struct urb *urb) | 123 | static void dm_write_async_callback(struct urb *urb) |
124 | { | 124 | { |
125 | struct usb_ctrlrequest *req = (struct usb_ctrlrequest *)urb->context; | 125 | struct usb_ctrlrequest *req = (struct usb_ctrlrequest *)urb->context; |
126 | int status = urb->status; | ||
126 | 127 | ||
127 | if (urb->status < 0) | 128 | if (status < 0) |
128 | printk(KERN_DEBUG "dm_write_async_callback() failed with %d\n", | 129 | printk(KERN_DEBUG "dm_write_async_callback() failed with %d\n", |
129 | urb->status); | 130 | status); |
130 | 131 | ||
131 | kfree(req); | 132 | kfree(req); |
132 | usb_free_urb(urb); | 133 | usb_free_urb(urb); |