diff options
-rw-r--r-- | drivers/usb/serial/quatech2.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/usb/serial/quatech2.c b/drivers/usb/serial/quatech2.c index 00e6c9bac8a3..d8531047b41a 100644 --- a/drivers/usb/serial/quatech2.c +++ b/drivers/usb/serial/quatech2.c | |||
@@ -116,7 +116,6 @@ struct qt2_serial_private { | |||
116 | }; | 116 | }; |
117 | 117 | ||
118 | struct qt2_port_private { | 118 | struct qt2_port_private { |
119 | bool is_open; | ||
120 | u8 device_port; | 119 | u8 device_port; |
121 | 120 | ||
122 | spinlock_t urb_lock; | 121 | spinlock_t urb_lock; |
@@ -398,7 +397,6 @@ static int qt2_open(struct tty_struct *tty, struct usb_serial_port *port) | |||
398 | return status; | 397 | return status; |
399 | } | 398 | } |
400 | 399 | ||
401 | port_priv->is_open = true; | ||
402 | port_priv->device_port = (u8) device_port; | 400 | port_priv->device_port = (u8) device_port; |
403 | 401 | ||
404 | if (tty) | 402 | if (tty) |
@@ -418,8 +416,6 @@ static void qt2_close(struct usb_serial_port *port) | |||
418 | serial = port->serial; | 416 | serial = port->serial; |
419 | port_priv = usb_get_serial_port_data(port); | 417 | port_priv = usb_get_serial_port_data(port); |
420 | 418 | ||
421 | port_priv->is_open = false; | ||
422 | |||
423 | spin_lock_irqsave(&port_priv->urb_lock, flags); | 419 | spin_lock_irqsave(&port_priv->urb_lock, flags); |
424 | usb_kill_urb(port_priv->write_urb); | 420 | usb_kill_urb(port_priv->write_urb); |
425 | port_priv->urb_in_use = false; | 421 | port_priv->urb_in_use = false; |
@@ -905,12 +901,6 @@ static void qt2_break_ctl(struct tty_struct *tty, int break_state) | |||
905 | 901 | ||
906 | port_priv = usb_get_serial_port_data(port); | 902 | port_priv = usb_get_serial_port_data(port); |
907 | 903 | ||
908 | if (!port_priv->is_open) { | ||
909 | dev_err(&port->dev, | ||
910 | "%s - port is not open\n", __func__); | ||
911 | return; | ||
912 | } | ||
913 | |||
914 | val = (break_state == -1) ? 1 : 0; | 904 | val = (break_state == -1) ? 1 : 0; |
915 | 905 | ||
916 | status = qt2_control_msg(port->serial->dev, QT2_BREAK_CONTROL, | 906 | status = qt2_control_msg(port->serial->dev, QT2_BREAK_CONTROL, |