diff options
Diffstat (limited to 'drivers/usb/serial/omninet.c')
-rw-r--r-- | drivers/usb/serial/omninet.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/serial/omninet.c b/drivers/usb/serial/omninet.c index 1b041c59aab2..10090cb52d31 100644 --- a/drivers/usb/serial/omninet.c +++ b/drivers/usb/serial/omninet.c | |||
@@ -295,8 +295,9 @@ static int omninet_write_room (struct usb_serial_port *port) | |||
295 | struct usb_serial *serial = port->serial; | 295 | struct usb_serial *serial = port->serial; |
296 | struct usb_serial_port *wport = serial->port[1]; | 296 | struct usb_serial_port *wport = serial->port[1]; |
297 | 297 | ||
298 | int room = 0; // Default: no room | 298 | int room = 0; /* Default: no room */ |
299 | 299 | ||
300 | /* FIXME: no consistent locking for write_urb_busy */ | ||
300 | if (wport->write_urb_busy) | 301 | if (wport->write_urb_busy) |
301 | room = wport->bulk_out_size - OMNINET_HEADERLEN; | 302 | room = wport->bulk_out_size - OMNINET_HEADERLEN; |
302 | 303 | ||