mxser: introduce mxser_16550A_or_MUST helper
authorJiri Slaby <jslaby@suse.cz>
Fri, 18 Jun 2021 06:15:12 +0000 (08:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jun 2021 11:10:03 +0000 (13:10 +0200)
commit5d1ea1ad288fc9e76acb5ec8af1bc16bb799c14f
treeb5748e7e19bfa5a643cfc2433d236f3fd06471b1
parent06cc52ef8284fa8c95552e6ad0da93d89774eb7f
mxser: introduce mxser_16550A_or_MUST helper

This check is used in the code on many places. Either in positive or
negative form. So introduce a helper called mxser_16550A_or_MUST for
this purpose. And replace all the occurrences.

This simplifies many ifs in there.

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