Skip to contentSkip to conversation

vt: drop redundant might_sleep() in do_con_write()

PATCH New Eric Biggers 1 participant 1 message Feb 24, 2020 TTY layer and serial drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vt: drop redundant might_sleep() in do_con_write()

From: Eric Biggers <[email protected]>

The might_sleep() in do_con_write() is redundant because console_lock() already contains might_sleep(). Remove it.

---
 drivers/tty/vt/vt.c | 2 --
 1 file changed, 2 deletions(-)
drivers/tty/vt/vt.c +0 -2
index 0cfbb7182b5a5..a9fe30efa304b 100644
@@ -2576,8 +2576,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) {
Signature · 1 line
2.25.1