tty: n_tty: use MASK() for masking out size bits
authorJiri Slaby (SUSE) <jirislaby@kernel.org>
Sun, 27 Aug 2023 07:41:39 +0000 (09:41 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 27 Aug 2023 09:46:52 +0000 (11:46 +0200)
commit819287f0f335cf74d6486eb7f3d465b9668bc9d8
tree26998aa948c7e6af4d5379db1f0a3b8297fc87f4
parentc3b2b26f6eaad5d48fe6dd2d9bada07b193bdb61
tty: n_tty: use MASK() for masking out size bits

In n_tty, there is already a macro to mask out top bits from ring buffer
counters. It is MASK() added some time ago. So use it more in the code
to make it more readable.

Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20230827074147.2287-7-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_tty.c