Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

ran jianping and committed by
Borislav Petkov
fb4b9685 1c23f9e6

-1
-1
drivers/edac/wq.c
··· 37 37 38 38 void edac_workqueue_teardown(void) 39 39 { 40 - flush_workqueue(wq); 41 40 destroy_workqueue(wq); 42 41 wq = NULL; 43 42 }