]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
USB: serial: kobil_sct: clean up set_termios()
authorJohan Hovold <johan@kernel.org>
Wed, 22 Oct 2025 15:26:39 +0000 (17:26 +0200)
committerJohan Hovold <johan@kernel.org>
Mon, 27 Oct 2025 08:22:21 +0000 (09:22 +0100)
commitd99bdbb0d3e4928dfc5c8dfd017483055ed792c1
tree5fa4657b679649da801d6322c0a10ef7b4c76f09
parent754640d85566ffccfae489cd0c16de57bdf88140
USB: serial: kobil_sct: clean up set_termios()

Clean up set_termios() by using a shorter identifier for the control
request value, replacing a ternary operator and adding some missing
braces to make it more readable.

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/kobil_sct.c