diff options
Diffstat (limited to 'drivers/net/usb/ipheth.c')
| -rw-r--r-- | drivers/net/usb/ipheth.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/usb/ipheth.c b/drivers/net/usb/ipheth.c index ca71f6c03859..7275761a1177 100644 --- a/drivers/net/usb/ipheth.c +++ b/drivers/net/usb/ipheth.c | |||
| @@ -291,12 +291,15 @@ static void ipheth_sndbulk_callback(struct urb *urb) | |||
| 291 | 291 | ||
| 292 | static int ipheth_carrier_set(struct ipheth_device *dev) | 292 | static int ipheth_carrier_set(struct ipheth_device *dev) |
| 293 | { | 293 | { |
| 294 | struct usb_device *udev = dev->udev; | 294 | struct usb_device *udev; |
| 295 | int retval; | 295 | int retval; |
| 296 | |||
| 296 | if (!dev) | 297 | if (!dev) |
| 297 | return 0; | 298 | return 0; |
| 298 | if (!dev->confirmed_pairing) | 299 | if (!dev->confirmed_pairing) |
| 299 | return 0; | 300 | return 0; |
| 301 | |||
| 302 | udev = dev->udev; | ||
| 300 | retval = usb_control_msg(udev, | 303 | retval = usb_control_msg(udev, |
| 301 | usb_rcvctrlpipe(udev, IPHETH_CTRL_ENDP), | 304 | usb_rcvctrlpipe(udev, IPHETH_CTRL_ENDP), |
| 302 | IPHETH_CMD_CARRIER_CHECK, /* request */ | 305 | IPHETH_CMD_CARRIER_CHECK, /* request */ |
