[PATCH] usbcore: fix compile error with CONFIG_USB_SUSPEND=n
This patch (as647) fixes a small error introduced by a recent change to the USB core suspend/resume code. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Родитель
6a8e87b23f
Коммит
43c5d5aaaf
|
@ -1892,8 +1892,8 @@ int usb_resume_device(struct usb_device *udev)
|
||||||
status = hub_port_resume(hdev_to_hub(udev->parent),
|
status = hub_port_resume(hdev_to_hub(udev->parent),
|
||||||
udev->portnum, udev);
|
udev->portnum, udev);
|
||||||
} else
|
} else
|
||||||
status = 0;
|
|
||||||
#endif
|
#endif
|
||||||
|
status = 0;
|
||||||
} else
|
} else
|
||||||
status = finish_device_resume(udev);
|
status = finish_device_resume(udev);
|
||||||
if (status < 0)
|
if (status < 0)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче