projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
699ddda
)
Fix USB gadget net2280.c compile
author
Linus Torvalds
<torvalds@g5.osdl.org>
Wed, 18 Oct 2006 01:03:33 +0000
(18:03 -0700)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Wed, 18 Oct 2006 01:03:33 +0000
(18:03 -0700)
It would fail the compile due to the newly added error checking testing
a bad macro for a "return value" unless USB_GADGET_DEBUG_FILES was
enabled.
Pointed out by Stephen Hemminger.
Acked-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/usb/gadget/net2280.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/gadget/net2280.c
b/drivers/usb/gadget/net2280.c
index 7cfe0e5cf670ff2856f49b8a2465140b75a9f8a2..3acc896a5d4c4abc08e6df1149d575ec52438da5 100644
(file)
--- a/
drivers/usb/gadget/net2280.c
+++ b/
drivers/usb/gadget/net2280.c
@@
-1774,8
+1774,8
@@
static DEVICE_ATTR (queues, S_IRUGO, show_queues, NULL);
#else
-#define device_create_file(a,b)
do {} while
(0)
-#define device_remove_file
device_create_file
+#define device_create_file(a,b) (0)
+#define device_remove_file
(a,b) do { } while (0)
#endif