[PATCH] isdn: hfc_usb: use NULL instead of 0

2005-03-27 Thread Randy.Dunlap

17 of these (all different line numbers):
drivers/isdn/hisax/hfc_usb.c:139:9: warning: Using plain integer as NULL pointer


Signed-off-by: Randy Dunlap <[EMAIL PROTECTED]>

diffstat:=
 drivers/isdn/hisax/hfc_usb.c |2 +-
 drivers/isdn/hisax/hfc_usb.h |2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff -Naurp ./drivers/isdn/hisax/hfc_usb.c~isdn_hfcusb_null 
./drivers/isdn/hisax/hfc_usb.c
--- ./drivers/isdn/hisax/hfc_usb.c~isdn_hfcusb_null 2005-03-26 
21:48:11.0 -0800
+++ ./drivers/isdn/hisax/hfc_usb.c  2005-03-27 21:10:19.0 -0800
@@ -136,7 +136,7 @@ vendor_data vdata[] = {
 LED_SCHEME1, {0x80, -64, -32, -16}
 }
,
-   {0, 0, 0}   /* EOL element */
+   {0, 0, NULL}/* EOL element */
 };
 
 /***/
diff -Naurp ./drivers/isdn/hisax/hfc_usb.h~isdn_hfcusb_null 
./drivers/isdn/hisax/hfc_usb.h
--- ./drivers/isdn/hisax/hfc_usb.h~isdn_hfcusb_null 2005-03-27 
21:13:10.0 -0800
+++ ./drivers/isdn/hisax/hfc_usb.h  2005-03-27 21:13:27.0 -0800
@@ -91,7 +91,7 @@
 /**/
 /* macros */
 /**/
-#define 
write_usb(a,b,c)usb_control_msg((a)->dev,(a)->ctrl_out_pipe,0,0x40,(c),(b),0,0,HFC_CTRL_TIMEOUT)
+#define 
write_usb(a,b,c)usb_control_msg((a)->dev,(a)->ctrl_out_pipe,0,0x40,(c),(b),NULL,0,HFC_CTRL_TIMEOUT)
 #define read_usb(a,b,c) 
usb_control_msg((a)->dev,(a)->ctrl_in_pipe,1,0xC0,0,(b),(c),1,HFC_CTRL_TIMEOUT)
 
 


---
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH] isdn: hfc_usb: use NULL instead of 0

2005-03-27 Thread Randy.Dunlap

17 of these (all different line numbers):
drivers/isdn/hisax/hfc_usb.c:139:9: warning: Using plain integer as NULL pointer


Signed-off-by: Randy Dunlap [EMAIL PROTECTED]

diffstat:=
 drivers/isdn/hisax/hfc_usb.c |2 +-
 drivers/isdn/hisax/hfc_usb.h |2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff -Naurp ./drivers/isdn/hisax/hfc_usb.c~isdn_hfcusb_null 
./drivers/isdn/hisax/hfc_usb.c
--- ./drivers/isdn/hisax/hfc_usb.c~isdn_hfcusb_null 2005-03-26 
21:48:11.0 -0800
+++ ./drivers/isdn/hisax/hfc_usb.c  2005-03-27 21:10:19.0 -0800
@@ -136,7 +136,7 @@ vendor_data vdata[] = {
 LED_SCHEME1, {0x80, -64, -32, -16}
 }
,
-   {0, 0, 0}   /* EOL element */
+   {0, 0, NULL}/* EOL element */
 };
 
 /***/
diff -Naurp ./drivers/isdn/hisax/hfc_usb.h~isdn_hfcusb_null 
./drivers/isdn/hisax/hfc_usb.h
--- ./drivers/isdn/hisax/hfc_usb.h~isdn_hfcusb_null 2005-03-27 
21:13:10.0 -0800
+++ ./drivers/isdn/hisax/hfc_usb.h  2005-03-27 21:13:27.0 -0800
@@ -91,7 +91,7 @@
 /**/
 /* macros */
 /**/
-#define 
write_usb(a,b,c)usb_control_msg((a)-dev,(a)-ctrl_out_pipe,0,0x40,(c),(b),0,0,HFC_CTRL_TIMEOUT)
+#define 
write_usb(a,b,c)usb_control_msg((a)-dev,(a)-ctrl_out_pipe,0,0x40,(c),(b),NULL,0,HFC_CTRL_TIMEOUT)
 #define read_usb(a,b,c) 
usb_control_msg((a)-dev,(a)-ctrl_in_pipe,1,0xC0,0,(b),(c),1,HFC_CTRL_TIMEOUT)
 
 


---
-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/