summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2020-07-01 19:53:41 +0300
committerJohan Hovold <johan@kernel.org>2020-07-02 11:38:43 +0300
commitc34a917aeff44fb5b2afeef7f5e946e4de405d5a (patch)
treef1acb5e3518ae655cba9718e032e8d77484064e8
parent1bf2cda6597f08cef06db7b1804e5ff1d5bc5ee8 (diff)
downloadlinux-c34a917aeff44fb5b2afeef7f5e946e4de405d5a.tar.xz
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>
-rw-r--r--drivers/usb/serial/kobil_sct.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/usb/serial/kobil_sct.c b/drivers/usb/serial/kobil_sct.c
index e9882ba20933..79ce0219fdde 100644
--- a/drivers/usb/serial/kobil_sct.c
+++ b/drivers/usb/serial/kobil_sct.c
@@ -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,