Commit 42d8a2d2 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Greg Kroah-Hartman

USB: Turn usb_resume_both() into static inline

drivers/usb/core/hub.c: In function `hub_events':
drivers/usb/core/hub.c:2591: warning: statement with no effect
Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 088dc270
...@@ -40,7 +40,10 @@ extern int usb_port_resume(struct usb_device *dev); ...@@ -40,7 +40,10 @@ extern int usb_port_resume(struct usb_device *dev);
#else #else
#define usb_suspend_both(udev, msg) 0 #define usb_suspend_both(udev, msg) 0
#define usb_resume_both(udev) 0 static inline int usb_resume_both(struct usb_device *udev)
{
return 0;
}
#define usb_port_suspend(dev) 0 #define usb_port_suspend(dev) 0
#define usb_port_resume(dev) 0 #define usb_port_resume(dev) 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment