summaryrefslogtreecommitdiff
path: root/drivers/usb/serial
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-04-11 08:45:34 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-04-11 08:45:34 -0700
commitb8a261b59c8c6014d7dc984811ec81f14ef6f767 (patch)
tree2a4b46a9e50bb79bffb4c4d252f500e851d79780 /drivers/usb/serial
parent1157f69bee295987952bf0cbbcbc419d497eb51c (diff)
USB: serial: wishbone-serial: fix up minor sparse warning
This fixes a sparse warning where we should be using NULL instead of 0 Cc: Wesley W. Terpstra <w.terpstra@gsi.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial')
-rw-r--r--drivers/usb/serial/wishbone-serial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/serial/wishbone-serial.c b/drivers/usb/serial/wishbone-serial.c
index 481ec669bf7c..100573c6f19e 100644
--- 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 */
}