n_hdlc: inline n_hdlc_release
authorJiri Slaby <jslaby@suse.cz>
Wed, 19 Feb 2020 08:41:06 +0000 (09:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Feb 2020 09:24:33 +0000 (10:24 +0100)
commit43e784eca86a38a957db4022b3e40efbb663b091
tree9727707193cc3b6164c7bd24406a8aa9442703fc
parent75011682e7c57b085adb49e8305647ccfadbcf6a
n_hdlc: inline n_hdlc_release

Put the body of n_hdlc_release into the only caller. It can be seen,
that the "if" is superfluous now -- the same happens few lines above in
n_hdlc_tty_close already. So drop it.

Drop also n_hdlc2tty macro as this was the only user.

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