Skip to content

Commit

Permalink
USB: ark3116.c: fix check-after-use
Browse files Browse the repository at this point in the history
The Coverity checker spotted that we'd have already oops'ed if one of
these was NULL.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Adrian Bunk authored and Greg Kroah-Hartman committed Oct 12, 2007
1 parent f6c1cea commit f311cf5
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/usb/serial/ark3116.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,6 @@ static void ark3116_set_termios(struct usb_serial_port *port,

dbg("%s - port %d", __FUNCTION__, port->number);

if (!port->tty || !port->tty->termios) {
dbg("%s - no tty structures", __FUNCTION__);
return;
}

spin_lock_irqsave(&priv->lock, flags);
if (!priv->termios_initialized) {
*(port->tty->termios) = tty_std_termios;
Expand Down

0 comments on commit f311cf5

Please sign in to comment.