mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
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>
This commit is contained in:
parent
b66f4fa509
commit
d912156605
3 changed files with 1 additions and 4 deletions
|
@ -561,8 +561,6 @@ extern void tty_ldisc_release(struct tty_struct *tty, struct tty_struct *o_tty);
|
|||
extern void tty_ldisc_init(struct tty_struct *tty);
|
||||
extern void tty_ldisc_deinit(struct tty_struct *tty);
|
||||
extern void tty_ldisc_begin(void);
|
||||
/* This last one is just for the tty layer internals and shouldn't be used elsewhere */
|
||||
extern void tty_ldisc_enable(struct tty_struct *tty);
|
||||
|
||||
|
||||
/* n_tty.c */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue