diff options
author | Peter Hurley <peter@hurleysoftware.com> | 2013-03-11 21:44:44 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-03-19 00:48:42 +0100 |
commit | be3971166d93a401105952672dab2eac6542cb57 (patch) | |
tree | a8180900d71b0f69906c01ae021ec39b059a8e1e /drivers/tty/tty_ldisc.c | |
parent | tty: Locate get/put ldisc functions together (diff) | |
download | linux-be3971166d93a401105952672dab2eac6542cb57.tar.xz linux-be3971166d93a401105952672dab2eac6542cb57.zip |
tty: Remove redundant tty_wait_until_sent()
tty_ioctl() already waits until sent.
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/tty_ldisc.c')
-rw-r--r-- | drivers/tty/tty_ldisc.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/tty/tty_ldisc.c b/drivers/tty/tty_ldisc.c index 4e46c1721b9d..1afe192bef6a 100644 --- a/drivers/tty/tty_ldisc.c +++ b/drivers/tty/tty_ldisc.c @@ -625,15 +625,6 @@ int tty_set_ldisc(struct tty_struct *tty, int ldisc) return 0; } - tty_unlock(tty); - /* - * Problem: What do we do if this blocks ? - * We could deadlock here - */ - - tty_wait_until_sent(tty, 0); - - tty_lock(tty); mutex_lock(&tty->ldisc_mutex); /* |