提交 bdd203a0 编写于 作者: D David Brownell 提交者: Greg Kroah-Hartman

USB: ohci, fix oddball gcc warning

Some versions of GCC recently grew annoying warnings about constants.
This gets rid of that warning from the OHCI driver.
Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 2f67cd5b
...@@ -74,7 +74,7 @@ urb_print (struct urb * urb, char * str, int small) ...@@ -74,7 +74,7 @@ urb_print (struct urb * urb, char * str, int small)
#define ohci_dbg_sw(ohci, next, size, format, arg...) \ #define ohci_dbg_sw(ohci, next, size, format, arg...) \
do { \ do { \
if (next) { \ if (next != NULL) { \
unsigned s_len; \ unsigned s_len; \
s_len = scnprintf (*next, *size, format, ## arg ); \ s_len = scnprintf (*next, *size, format, ## arg ); \
*size -= s_len; *next += s_len; \ *size -= s_len; *next += s_len; \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册