Commit fb4b9685 authored by ran jianping's avatar ran jianping Committed by Borislav Petkov

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: default avatarZeal Robot <zealci@zte.com.cn>
Signed-off-by: default avatarran jianping <ran.jianping@zte.com.cn>
Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20220424062127.3219542-1-ran.jianping@zte.com.cn
parent 1c23f9e6
...@@ -37,7 +37,6 @@ int edac_workqueue_setup(void) ...@@ -37,7 +37,6 @@ int edac_workqueue_setup(void)
void edac_workqueue_teardown(void) void edac_workqueue_teardown(void)
{ {
flush_workqueue(wq);
destroy_workqueue(wq); destroy_workqueue(wq);
wq = NULL; wq = NULL;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment