tty: Simplify tty_set_ldisc() exit handling
authorPeter Hurley <peter@hurleysoftware.com>
Sun, 8 Nov 2015 14:29:38 +0000 (09:29 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Dec 2015 03:59:48 +0000 (19:59 -0800)
commit63d8cb3f19dabb409a09b4f2b8827934ab9365a3
treee6e253f2730c9cb0c1c152e8fb057ff95d5e139a
parent5841fc4b136b8dbab551749d2b12d71628f34635
tty: Simplify tty_set_ldisc() exit handling

Perform common exit for both successful and error exit handling
in tty_set_ldisc(). Fixes unlikely possibility of failing to restart
input kworker when switching to the same line discipline (noop case).

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