summaryrefslogtreecommitdiffstats
path: root/drivers/tty/tty_ldisc.c
diff options
context:
space:
mode:
authorDave Young <dyoung@redhat.com>2011-11-08 13:44:59 +0800
committerGreg Kroah-Hartman <gregkh@suse.de>2011-11-15 15:50:30 -0800
commit66ef27c3fd0e91038029054c862c9439be5137c1 (patch)
tree63d97e623ea1c3b0e0e0a88679dd7eb156b75237 /drivers/tty/tty_ldisc.c
parent1ea6b8f48918282bdca0b32a34095504ee65bab5 (diff)
downloadlinux-66ef27c3fd0e91038029054c862c9439be5137c1.tar.gz
linux-66ef27c3fd0e91038029054c862c9439be5137c1.tar.xz
linux-66ef27c3fd0e91038029054c862c9439be5137c1.zip
tty_ldisc: remove unnecessary negative return check for wait_event_timeout
wait_event_timeout always return value >= 0 remove the unnecessary ret < 0 check Signed-off-by: Dave Young <dyoung@redhat.com> Acked-by: Jiri Slaby <jslaby@suse.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/tty/tty_ldisc.c')
-rw-r--r--drivers/tty/tty_ldisc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/tty/tty_ldisc.c b/drivers/tty/tty_ldisc.c
index 512c49f98e85..5201f78d39a6 100644
--- a/drivers/tty/tty_ldisc.c
+++ b/drivers/tty/tty_ldisc.c
@@ -556,8 +556,6 @@ static int tty_ldisc_wait_idle(struct tty_struct *tty)
int ret;
ret = wait_event_timeout(tty_ldisc_idle,
atomic_read(&tty->ldisc->users) == 1, 5 * HZ);
- if (ret < 0)
- return ret;
return ret > 0 ? 0 : -EBUSY;
}