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

staging/ks7010: Remove redundant 'flush_workqueue()' calls

'destroy_workqueue()' already drains the queue before destroying it,
so there is no need to flush it explicitly.

Remove the redundant 'flush_workqueue()' calls.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi (CGEL ZTE) <chi.minghao@zte.com.cn>
Link: https://lore.kernel.org/r/20220210060411.1607928-1-chi.minghao@zte.com.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Minghao Chi (CGEL ZTE) and committed by
Greg Kroah-Hartman
f89019d4 b7b3c35e

+1 -3
+1 -3
drivers/staging/ks7010/ks7010_sdio.c
··· 1102 1102 if (ret) /* memory allocation failure */ 1103 1103 goto err_free_card; 1104 1104 1105 - if (priv->wq) { 1106 - flush_workqueue(priv->wq); 1105 + if (priv->wq) 1107 1106 destroy_workqueue(priv->wq); 1108 - } 1109 1107 1110 1108 hostif_exit(priv); 1111 1109