Răsfoiți Sursa

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>
Greg Kroah-Hartman 12 ani în urmă
părinte
comite
b8a261b59c
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      drivers/usb/serial/wishbone-serial.c

+ 1 - 1
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,
 		USB_DIR_OUT|USB_TYPE_VENDOR|USB_RECIP_INTERFACE,
 		value, /* wValue = device is open(1) or closed(0) */
 		value, /* wValue = device is open(1) or closed(0) */
 		port->serial->interface->cur_altsetting->desc.bInterfaceNumber,
 		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 */
 		5000); /* Timeout till operation fails */
 }
 }