Skip to content

Commit fd99392

Browse files
Jiri Slaby (SUSE)gregkh
authored andcommitted
tty: don't check for signal_pending() in send_break()
msleep_interruptible() will check on its own. So no need to do the check in send_break() before calling the above. Signed-off-by: "Jiri Slaby (SUSE)" <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 6661968 commit fd99392

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/tty/tty_io.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2484,8 +2484,7 @@ static int send_break(struct tty_struct *tty, unsigned int duration)
24842484
retval = tty->ops->break_ctl(tty, -1);
24852485
if (retval)
24862486
goto out;
2487-
if (!signal_pending(current))
2488-
msleep_interruptible(duration);
2487+
msleep_interruptible(duration);
24892488
retval = tty->ops->break_ctl(tty, 0);
24902489
out:
24912490
tty_write_unlock(tty);

0 commit comments

Comments
 (0)