Skip to content

Commit

Permalink
vt: drop redundant might_sleep() in do_con_write()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Biggers authored and Greg Kroah-Hartman committed Mar 12, 2020
1 parent da9a5aa commit c57c164
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/tty/vt/vt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c57c164

Please sign in to comment.