n_tty: Remove tty count checks from unthrottle
authorPeter Hurley <peter@hurleysoftware.com>
Sun, 10 Jan 2016 05:45:13 +0000 (21:45 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Jan 2016 19:58:02 +0000 (11:58 -0800)
commitffb91a459c6cacb10972f5dff893fb1292bac85d
tree663966919757c58a0f737ad50f98594f7d93b081
parent7bccc36544a8b4a7d768f8ccdd6001a52872aca9
n_tty: Remove tty count checks from unthrottle

Since n_tty_check_unthrottle() is only called from n_tty_read()
which only originates from a userspace read(), the tty count cannot
be 0; the read() guarantees the file descriptor has not yet been
released.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_tty.c