n_hdlc: remove checking of n_hdlc
authorJiri Slaby <jslaby@suse.cz>
Wed, 19 Feb 2020 08:41:08 +0000 (09:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Feb 2020 09:24:33 +0000 (10:24 +0100)
commit844cc5f9e530da7502b0de69f0268b1fb0dd7ce3
treec5886f083e43cf976cd8488c216361e386a8ae23
parentdf6de639d42cce92f56b4a0583896f590fe046b8
n_hdlc: remove checking of n_hdlc

We got rid of backup_tty recently. Also, the tty layer ensures not to
call other ldisc hooks after ldisc close. That means, all those tests
are superfluous now so remove them.

Note that we remove the magic check in write after schedule too. The tty
cannot change during schedule.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20200219084118.26491-14-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_hdlc.c