[PATCH 1/2] usb: host: ohci: fix compile warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fix the following compile warning:

| In file included from drivers/usb/host/ohci-hcd.c:101:0:
| drivers/usb/host/ohci-dbg.c: In function ‘fill_registers_buffer’:
| drivers/usb/host/ohci-dbg.c:642:2: warning: the comparison will \
|	always evaluate as ‘true’ for the address of ‘next’ will \
|	never be NULL [-Waddress]
| drivers/usb/host/ohci-dbg.c:661:3: warning: the comparison will \
|	always evaluate as ‘true’ for the address of ‘next’ will \
|	never be NULL [-Waddress]

Signed-off-by: Felipe Balbi <balbi@xxxxxx>
---
 drivers/usb/host/ohci-dbg.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/drivers/usb/host/ohci-dbg.c b/drivers/usb/host/ohci-dbg.c
index d7d3449..aa1270a 100644
--- a/drivers/usb/host/ohci-dbg.c
+++ b/drivers/usb/host/ohci-dbg.c
@@ -74,12 +74,9 @@ urb_print(struct urb * urb, char * str, int small, int status)
 
 #define ohci_dbg_sw(ohci, next, size, format, arg...) \
 	do { \
-	if (next != NULL) { \
 		unsigned s_len; \
 		s_len = scnprintf (*next, *size, format, ## arg ); \
 		*size -= s_len; *next += s_len; \
-	} else \
-		ohci_dbg(ohci,format, ## arg ); \
 	} while (0);
 
 
-- 
1.7.8.rc0

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux