projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f67cd5
)
USB: ohci, fix oddball gcc warning
author
David Brownell
<david-b@pacbell.net>
Sat, 18 Aug 2007 05:19:59 +0000
(22:19 -0700)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Wed, 22 Aug 2007 21:27:52 +0000
(14:27 -0700)
Some versions of GCC recently grew annoying warnings about constants.
This gets rid of that warning from the OHCI driver.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/ohci-dbg.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/host/ohci-dbg.c
b/drivers/usb/host/ohci-dbg.c
index 6f9e43e9a6cab69072fe420a460d74074f77e6b7..f61c6cdd06f2443ecbc0ed333df7a92cee618494 100644
(file)
--- a/
drivers/usb/host/ohci-dbg.c
+++ b/
drivers/usb/host/ohci-dbg.c
@@
-74,7
+74,7
@@
urb_print (struct urb * urb, char * str, int small)
#define ohci_dbg_sw(ohci, next, size, format, arg...) \
do { \
- if (next) { \
+ if (next
!= NULL
) { \
unsigned s_len; \
s_len = scnprintf (*next, *size, format, ## arg ); \
*size -= s_len; *next += s_len; \