summaryrefslogtreecommitdiff
path: root/drivers/edac/wq.c
diff options
context:
space:
mode:
authorran jianping <ran.jianping@zte.com.cn>2022-04-24 09:21:26 +0300
committerBorislav Petkov <bp@suse.de>2022-08-25 11:50:35 +0300
commitfb4b9685779f25ff063358623f3da4f3344be9bb (patch)
tree505a9f5111e0ce1d91a89f25638e71a6347e517f /drivers/edac/wq.c
parent1c23f9e627a7b412978b4e852793c5e3c3efc555 (diff)
downloadlinux-fb4b9685779f25ff063358623f3da4f3344be9bb.tar.xz
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 <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
Diffstat (limited to 'drivers/edac/wq.c')
-rw-r--r--drivers/edac/wq.c1
1 files changed, 0 insertions, 1 deletions
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;
}