EDAC/wq: Remove unneeded flush_workqueue()
authorran jianping <ran.jianping@zte.com.cn>
Sun, 24 Apr 2022 06:21:26 +0000 (06:21 +0000)
committerBorislav Petkov <bp@suse.de>
Thu, 25 Aug 2022 08:50:35 +0000 (10:50 +0200)
destroy_workqueue() already takes care of flushing the workqueue so
there is no need to flush it explicitly.

  [ bp: Massage commit message. ]

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: ran jianping <ran.jianping@zte.com.cn>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20220424062127.3219542-1-ran.jianping@zte.com.cn
drivers/edac/wq.c

index d021d287eaec60cc935370ab07ba5ab02c577e94..ad3f516627c5e0932dcc99508d3a2b3824609d56 100644 (file)
@@ -37,7 +37,6 @@ int edac_workqueue_setup(void)
 
 void edac_workqueue_teardown(void)
 {
-       flush_workqueue(wq);
        destroy_workqueue(wq);
        wq = NULL;
 }