Skip to content

Commit

Permalink
USB: iuu_phoenix: remove bogus disconnect test in close
Browse files Browse the repository at this point in the history
Remove bogus disconnect test for serial device being NULL in close. This
can never happen as close is guaranteed to be called before the last tty
reference is dropped (and port->serial is cleared).

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Johan Hovold authored and Greg Kroah-Hartman committed Mar 25, 2013
1 parent 5dbabac commit 8976f1d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/usb/serial/iuu_phoenix.c
Original file line number Diff line number Diff line change
@@ -942,11 +942,6 @@ static void iuu_set_termios(struct tty_struct *tty,
static void iuu_close(struct usb_serial_port *port)
{
/* iuu_led (port,255,0,0,0); */
struct usb_serial *serial;

serial = port->serial;
if (!serial)
return;

iuu_uart_off(port);

0 comments on commit 8976f1d

Please sign in to comment.