tty_ldisc: remove unnecessary negative return check for wait_event_timeout
[~shefty/rdma-dev.git] / drivers / tty / tty_ldisc.c
index 512c49f98e85a2c59e70b2c454877589756376a2..5201f78d39a6812cde9aced8a14bd3a5f6820898 100644 (file)
@@ -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;
 }