]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite018c9352ae1c02f220d82fb677db634a1d1b549
treec5886f083e43cf976cd8488c216361e386a8ae23
parent2bb3e0a10091135e4de594061cc1f23d8897fe6e
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