Commit be3971166d93a401105952672dab2eac6542cb57
Committed by
Greg Kroah-Hartman
1 parent
734de249fb
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
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>
Showing 1 changed file with 0 additions and 9 deletions Side-by-side Diff
drivers/tty/tty_ldisc.c
... | ... | @@ -625,15 +625,6 @@ |
625 | 625 | return 0; |
626 | 626 | } |
627 | 627 | |
628 | - tty_unlock(tty); | |
629 | - /* | |
630 | - * Problem: What do we do if this blocks ? | |
631 | - * We could deadlock here | |
632 | - */ | |
633 | - | |
634 | - tty_wait_until_sent(tty, 0); | |
635 | - | |
636 | - tty_lock(tty); | |
637 | 628 | mutex_lock(&tty->ldisc_mutex); |
638 | 629 | |
639 | 630 | /* |