n_tty: Convert no_space_left to space_left boolean
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Thu, 9 Mar 2023 08:20:28 +0000 (10:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Mar 2023 14:01:08 +0000 (15:01 +0100)
commitb8abba0eb1f5b8a05e864cf00f246e1c066775a2
tree6a5c6f889f411be0866d1a7cd3770cc87676aaee
parent044498cd89a1a580a3145b2c5fb34d5e2f3b9908
n_tty: Convert no_space_left to space_left boolean

The no_space_left variable is only assigned with 0 and 1.

Change its type to boolean and move negation from its name into the
check.

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20230309082035.14880-2-ilpo.jarvinen@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_tty.c