Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>

+4
+4
drivers/usb/serial/kobil_sct.c
··· 526 526 0, 527 527 KOBIL_TIMEOUT 528 528 ); 529 + if (result) { 530 + dev_err(&port->dev, "failed to update line settings: %d\n", 531 + result); 532 + } 529 533 } 530 534 531 535 static int kobil_ioctl(struct tty_struct *tty,