USB: serial: cp210x: return early on unchanged termios
authorJohan Hovold <johan@kernel.org>
Mon, 16 Nov 2020 16:18:21 +0000 (17:18 +0100)
committerJohan Hovold <johan@kernel.org>
Fri, 4 Dec 2020 13:57:20 +0000 (14:57 +0100)
commit95168d624f3a8dee466525767200391a0fb006b9
treedd49ded172847fa86e1b85adc9d492a813ae2b35
parent053af9e6e817fe58191b0d27bc67ba329d94ced2
USB: serial: cp210x: return early on unchanged termios

Return early from set_termios() in case no relevant terminal settings
have changed.

This avoids testing each parameter in turn and specifically allows the
line-control handling to be cleaned up further.

Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/cp210x.c