aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/dgap/dgap.c
diff options
context:
space:
mode:
authorPeter Hurley <peter@hurleysoftware.com>2016-01-10 20:36:11 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-01-28 14:13:44 -0800
commit2d73b069f816742ba607f65f9dbbff2885365951 (patch)
treecf9322f0455ee2d43d3b711983ba27eff0540396 /drivers/staging/dgap/dgap.c
parentia64: Pin controlling tty for unaligned fault message (diff)
downloadlinux-dev-2d73b069f816742ba607f65f9dbbff2885365951.tar.xz
linux-dev-2d73b069f816742ba607f65f9dbbff2885365951.zip
staging: dgap: Remove redundant write_wait wakeups
Waking the write_wait queue is exactly what tty_wakeup() does; remove the open-coded wakeups. Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to '')
-rw-r--r--drivers/staging/dgap/dgap.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging/dgap/dgap.c
index dfbae215aec3..5413ed8c29ff 100644
--- a/drivers/staging/dgap/dgap.c
+++ b/drivers/staging/dgap/dgap.c
@@ -3155,8 +3155,6 @@ static void dgap_tty_flush_buffer(struct tty_struct *tty)
spin_unlock_irqrestore(&ch->ch_lock, lock_flags2);
spin_unlock_irqrestore(&bd->bd_lock, lock_flags);
- if (waitqueue_active(&tty->write_wait))
- wake_up_interruptible(&tty->write_wait);
tty_wakeup(tty);
}
@@ -4953,10 +4951,6 @@ static int dgap_tty_ioctl(struct tty_struct *tty, unsigned int cmd,
ch->ch_pun.un_flags &= ~(UN_LOW | UN_EMPTY);
wake_up_interruptible(&ch->ch_pun.un_flags_wait);
}
- if (waitqueue_active(&tty->write_wait))
- wake_up_interruptible(&tty->write_wait);
-
- /* Can't hold any locks when calling tty_wakeup! */
spin_unlock_irqrestore(&ch->ch_lock, lock_flags2);
spin_unlock_irqrestore(&bd->bd_lock, lock_flags);
tty_wakeup(tty);