Commit c34a917a authored by Johan Hovold's avatar Johan Hovold

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
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment