mxser: extract and dedup CTS handling
authorJiri Slaby <jslaby@suse.cz>
Fri, 18 Jun 2021 06:15:04 +0000 (08:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jun 2021 11:10:02 +0000 (13:10 +0200)
commitbe4866671f8302f04e0485573e97d3a5dfe93fca
tree36cb6a2ec3fba9944f7ba9bf02b0c75d2ced95cc
parent8aff64e00f1eced4e73ca81c7599c06851da4475
mxser: extract and dedup CTS handling

CTS is handled on two locations in mxser. Extract the code into
separation function mxser_handle_cts. And call it from the two
locations.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20210618061516.662-59-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/mxser.c