From fb4b9685779f25ff063358623f3da4f3344be9bb Mon Sep 17 00:00:00 2001 From: ran jianping Date: Sun, 24 Apr 2022 06:21:26 +0000 Subject: EDAC/wq: Remove unneeded flush_workqueue() 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 Signed-off-by: ran jianping Signed-off-by: Borislav Petkov Link: https://lore.kernel.org/r/20220424062127.3219542-1-ran.jianping@zte.com.cn --- drivers/edac/wq.c | 1 - 1 file changed, 1 deletion(-) (limited to 'drivers/edac/wq.c') diff --git a/drivers/edac/wq.c b/drivers/edac/wq.c index d021d287eaec..ad3f516627c5 100644 --- a/drivers/edac/wq.c +++ b/drivers/edac/wq.c @@ -37,7 +37,6 @@ int edac_workqueue_setup(void) void edac_workqueue_teardown(void) { - flush_workqueue(wq); destroy_workqueue(wq); wq = NULL; } -- cgit v1.2.3