diff options
| -rw-r--r-- | drivers/usb/core/hub.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index 875596e98e42..41531bba4321 100644 --- a/drivers/usb/core/hub.c +++ b/drivers/usb/core/hub.c | |||
| @@ -1790,7 +1790,10 @@ static int finish_device_resume(struct usb_device *udev) | |||
| 1790 | * and device drivers will know about any resume quirks. | 1790 | * and device drivers will know about any resume quirks. |
| 1791 | */ | 1791 | */ |
| 1792 | status = usb_get_status(udev, USB_RECIP_DEVICE, 0, &devstatus); | 1792 | status = usb_get_status(udev, USB_RECIP_DEVICE, 0, &devstatus); |
| 1793 | if (status < 2) | 1793 | if (status >= 0) |
| 1794 | status = (status == 2 ? 0 : -ENODEV); | ||
| 1795 | |||
| 1796 | if (status) | ||
| 1794 | dev_dbg(&udev->dev, | 1797 | dev_dbg(&udev->dev, |
| 1795 | "gone after usb resume? status %d\n", | 1798 | "gone after usb resume? status %d\n", |
| 1796 | status); | 1799 | status); |
