X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/dd21551c84c5d02de79ecdcc736e5a87b653e4a7..8968bee891bde44ddcd93d31980b5f3dda60c80a:/target/linux/adm5120/patches-2.6.38/901-adm5120-usb-fix-compiler-warning.patch diff --git a/target/linux/adm5120/patches-2.6.38/901-adm5120-usb-fix-compiler-warning.patch b/target/linux/adm5120/patches-2.6.38/901-adm5120-usb-fix-compiler-warning.patch index 93149df40..1abc84367 100644 --- a/target/linux/adm5120/patches-2.6.38/901-adm5120-usb-fix-compiler-warning.patch +++ b/target/linux/adm5120/patches-2.6.38/901-adm5120-usb-fix-compiler-warning.patch @@ -4,8 +4,8 @@ #define admhc_dbg_sw(ahcd, 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; \ +- if (next) { \ ++ if (next != NULL) { \ + unsigned s_len; \ + s_len = scnprintf(*next, *size, format, ## arg); \ + *size -= s_len; *next += s_len; \