Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f311cf58 authored by Adrian Bunk's avatar Adrian Bunk Committed by Greg Kroah-Hartman
Browse files

USB: ark3116.c: fix check-after-use



The Coverity checker spotted that we'd have already oops'ed if one of
these was NULL.

Signed-off-by: default avatarAdrian Bunk <bunk@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent f6c1ceaa
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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;