From: Oleg Nesterov Date: Mon, 16 Jul 2007 06:41:29 +0000 (-0700) Subject: kcdrwd: remove unneeded flush_signals() call X-Git-Tag: firefly_0821_release~28027 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3e1ac130d08b0c7066615fe60fe1e7212c8eaf6a;p=firefly-linux-kernel-4.4.55.git kcdrwd: remove unneeded flush_signals() call kcdrwd() is a kernel thread, all signals are ignored. Signed-off-by: Oleg Nesterov Cc: Peter Osterlund Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/block/pktcdvd.c b/drivers/block/pktcdvd.c index ce64e86d6ffb..7c294a40002e 100644 --- a/drivers/block/pktcdvd.c +++ b/drivers/block/pktcdvd.c @@ -1652,9 +1652,6 @@ static int kcdrwd(void *foobar) } } - if (signal_pending(current)) { - flush_signals(current); - } if (kthread_should_stop()) break; }