projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1157f69
)
USB: serial: wishbone-serial: fix up minor sparse warning
author
Greg Kroah-Hartman
<
[email protected]
>
Thu, 11 Apr 2013 15:45:34 +0000
(08:45 -0700)
committer
Greg Kroah-Hartman
<
[email protected]
>
Thu, 11 Apr 2013 15:45:34 +0000
(08:45 -0700)
This fixes a sparse warning where we should be using NULL instead of 0
Cc: Wesley W. Terpstra <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/usb/serial/wishbone-serial.c
patch
|
blob
|
history
diff --git
a/drivers/usb/serial/wishbone-serial.c
b/drivers/usb/serial/wishbone-serial.c
index 481ec669bf7c8309d2daa7cdb5b20d5b13f11b98..100573c6f19e79e348781198bb096414ce4d197a 100644
(file)
--- a/
drivers/usb/serial/wishbone-serial.c
+++ b/
drivers/usb/serial/wishbone-serial.c
@@
-43,7
+43,7
@@
static int usb_gsi_openclose(struct usb_serial_port *port, int value)
USB_DIR_OUT|USB_TYPE_VENDOR|USB_RECIP_INTERFACE,
value, /* wValue = device is open(1) or closed(0) */
port->serial->interface->cur_altsetting->desc.bInterfaceNumber,
-
0
, 0, /* There is no data stage */
+
NULL
, 0, /* There is no data stage */
5000); /* Timeout till operation fails */
}