Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 364467
b: refs/heads/master
c: 81ae1b3
h: refs/heads/master
i:
  364465: 7890bfb
  364463: 38ea802
v: v3
  • Loading branch information
Johan Hovold authored and Greg Kroah-Hartman committed Mar 25, 2013
1 parent d11f04f commit 4be0da0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5ddbb26b8b571231cace9f013b2d0ae66229b316
refs/heads/master: 81ae1b3c31a91358950011fee16698226a1bda45
8 changes: 0 additions & 8 deletions trunk/drivers/usb/serial/quatech2.c
Original file line number Diff line number Diff line change
Expand Up @@ -422,12 +422,6 @@ static void qt2_close(struct usb_serial_port *port)
port_priv->urb_in_use = false;
spin_unlock_irqrestore(&port_priv->urb_lock, flags);

mutex_lock(&port->serial->disc_mutex);
if (port->serial->disconnected) {
mutex_unlock(&port->serial->disc_mutex);
return;
}

/* flush the port transmit buffer */
i = usb_control_msg(serial->dev,
usb_rcvctrlpipe(serial->dev, 0),
Expand Down Expand Up @@ -458,8 +452,6 @@ static void qt2_close(struct usb_serial_port *port)
if (i < 0)
dev_err(&port->dev, "%s - close port failed %i\n",
__func__, i);

mutex_unlock(&port->serial->disc_mutex);
}

static void qt2_disconnect(struct usb_serial *serial)
Expand Down

0 comments on commit 4be0da0

Please sign in to comment.