From: Alexey Dobriyan Date: Sun, 20 Aug 2006 14:58:42 +0000 (+0400) Subject: USB: Turn usb_resume_both() into static inline X-Git-Tag: v2.6.19-rc1~899^2~46 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=42d8a2d22bbaed80f1ade65a08e4e1097a111d4b;p=linux-2.6-omap-h63xx.git 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: Alexey Dobriyan Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/core/usb.h b/drivers/usb/core/usb.h index 67da6d0b316..5162cb37021 100644 --- a/drivers/usb/core/usb.h +++ b/drivers/usb/core/usb.h @@ -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