vt: drop redundant might_sleep() in do_con_write()
authorEric Biggers <ebiggers@google.com>
Mon, 24 Feb 2020 07:34:50 +0000 (23:34 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Mar 2020 16:36:10 +0000 (17:36 +0100)
The might_sleep() in do_con_write() is redundant because console_lock()
already contains might_sleep().  Remove it.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Link: https://lore.kernel.org/r/20200224073450.292892-1-ebiggers@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/vt.c

index c4d75edde92399ed8282f218bb15f9018f658238..2123bb09214c5c85ae1581d18d959ac51aa17d16 100644 (file)
@@ -2577,8 +2577,6 @@ static int do_con_write(struct tty_struct *tty, const unsigned char *buf, int co
        if (in_interrupt())
                return count;
 
-       might_sleep();
-
        console_lock();
        vc = tty->driver_data;
        if (vc == NULL) {