commit | ee7e5e66f2d4fa3cc05382d6f739c644a666010c | [log] [tgz] |
---|---|---|
author | Jiri Slaby <jslaby@suse.cz> | Wed Sep 22 09:59:36 2021 +0200 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Tue Oct 05 14:08:09 2021 +0200 |
tree | 3ccdb3f48ee62b9a5e1de764e7eea38fda970741 | |
parent | bf1434c1b72451c4e02cdbf6984fdafcec194762 [diff] |
mxser: move FIFO clearing to mxser_disable_and_clear_FIFO() This code is used on two places, make a helper for disabling and clearing FIFOs. And demangle the too complicated 'if' by using a local variable. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Link: https://lore.kernel.org/r/20210922075938.31390-5-jslaby@suse.cz Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>