|
@@ -142,7 +142,7 @@ static int opticon_open(struct tty_struct *tty, struct usb_serial_port *port)
|
|
usb_clear_halt(port->serial->dev, port->read_urb->pipe);
|
|
usb_clear_halt(port->serial->dev, port->read_urb->pipe);
|
|
|
|
|
|
res = usb_serial_generic_open(tty, port);
|
|
res = usb_serial_generic_open(tty, port);
|
|
- if (!res)
|
|
|
|
|
|
+ if (res)
|
|
return res;
|
|
return res;
|
|
|
|
|
|
/* Request CTS line state, sometimes during opening the current
|
|
/* Request CTS line state, sometimes during opening the current
|