linux/adm5120: add preliminary 2.6.37 kernel support
[openwrt.git] / target / linux / adm5120 / patches-2.6.37 / 901-adm5120-usb-fix-compiler-warning.patch
1 --- a/drivers/usb/host/adm5120-dbg.c
2 +++ b/drivers/usb/host/adm5120-dbg.c
3 @@ -133,7 +133,7 @@ urb_print(struct admhcd *ahcd, struct ur
4  
5  #define admhc_dbg_sw(ahcd, next, size, format, arg...) \
6         do { \
7 -       if (next) { \
8 +       if (next != NULL) { \
9                 unsigned s_len; \
10                 s_len = scnprintf(*next, *size, format, ## arg ); \
11                 *size -= s_len; *next += s_len; \