tty: serial: use FIELD_GET() in lqasc_tx_ready()
authorJiri Slaby <jslaby@suse.cz>
Tue, 27 Sep 2022 11:18:17 +0000 (13:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 30 Sep 2022 12:58:45 +0000 (14:58 +0200)
commited9bf4aea06e36bbb3482e01061c433d703bcaff
tree08d04b30eb20e2cb77fb954604ce6edd39ee5ec8
parentd8544c9c7cf77100be9340c61a9e3e88fe4bb12c
tty: serial: use FIELD_GET() in lqasc_tx_ready()

FIELD_GET() can do the job smarter and more readable. We don't even need
ASCFSTAT_TXFREEOFF. So switch to the former and remove the latter.

Suggested-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20220927111819.18516-2-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/lantiq.c