Skip to content

Commit

Permalink
USB: Turn usb_resume_both() into static inline
Browse files Browse the repository at this point in the history
drivers/usb/core/hub.c: In function `hub_events':
drivers/usb/core/hub.c:2591: warning: statement with no effect

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Alexey Dobriyan authored and Greg Kroah-Hartman committed Sep 27, 2006
1 parent 088dc27 commit 42d8a2d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/usb/core/usb.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ extern int usb_port_resume(struct usb_device *dev);
#else

#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_resume(dev) 0

Expand Down

0 comments on commit 42d8a2d

Please sign in to comment.