projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
088dc27
)
USB: Turn usb_resume_both() into static inline
author
Alexey Dobriyan
<adobriyan@gmail.com>
Sun, 20 Aug 2006 14:58:42 +0000
(18:58 +0400)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Wed, 27 Sep 2006 18:58:55 +0000
(11:58 -0700)
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>
drivers/usb/core/usb.h
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/core/usb.h
b/drivers/usb/core/usb.h
index 67da6d0b316f45c3b588c97574d39e65542d17bd..5162cb370215dac375c2314d880ee1cbf2ae6f03 100644
(file)
--- 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