mxser: simplify FCR computation in mxser_change_speed()
authorJiri Slaby <jslaby@suse.cz>
Wed, 22 Sep 2021 07:59:35 +0000 (09:59 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Oct 2021 12:08:09 +0000 (14:08 +0200)
commitbf1434c1b72451c4e02cdbf6984fdafcec194762
tree53868819da8d63090ab29f495a748bb6eb913063
parent19236287d8d5752b3d072bb8bd18b533ef085d15
mxser: simplify FCR computation in mxser_change_speed()

Provided FIFO is always enabled for MUST chips, move its FCR setting out
of PORT_8250/PORT_16450 special case in mxser_change_speed(). Now, we
can pre-set fcr to zero and invert the condition of the 'if'.

This makes the code more readable (no functional change intended).

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