Commit c34a917a authored by Johan Hovold's avatar Johan Hovold
Browse files

USB: serial: kobil_sct: log failure to update line settings



Log failure to update the line settings in set_termios().

This also avoids a W=1 (-Wunused-but-set-variable) warning.

Reviewed-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
parent 1bf2cda6
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -526,6 +526,10 @@ static void kobil_set_termios(struct tty_struct *tty,
		  0,
		  KOBIL_TIMEOUT
		);
	if (result) {
		dev_err(&port->dev, "failed to update line settings: %d\n",
				result);
	}
}

static int kobil_ioctl(struct tty_struct *tty,