]> git.baikalelectronics.ru Git - kernel.git/commit
tty: Don't reenable already enabled ldisc
authorPeter Hurley <peter@hurleysoftware.com>
Mon, 11 Mar 2013 20:44:33 +0000 (16:44 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Mar 2013 23:44:02 +0000 (16:44 -0700)
commit501c316ab03d097c3bc78b01cc6f892babd79d99
treeac7fb32024a2e11ae94ee14401c652fc427ff2b2
parent7728b517cd3f5a38453b4c9f125b1c82dbe5a102
tty: Don't reenable already enabled ldisc

tty_ldisc_hangup() guarantees the ldisc is enabled (or that there
is no ldisc). Since __tty_hangup() was the only user, re-define
tty_ldisc_enable() in file-scope.

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