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

staging: greybus: 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>
Reviewed-by: Rui Miguel Silva <rmfrfs@gmail.com>
Signed-off-by: Minghao Chi (CGEL ZTE) <chi.minghao@zte.com.cn>
Link: https://lore.kernel.org/r/20220210060205.1607792-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
3b335cf1 f89019d4

-1
-1
drivers/staging/greybus/sdio.c
··· 858 858 gb_connection_set_data(connection, NULL); 859 859 mutex_unlock(&host->lock); 860 860 861 - flush_workqueue(host->mrq_workqueue); 862 861 destroy_workqueue(host->mrq_workqueue); 863 862 gb_connection_disable_rx(connection); 864 863 mmc_remove_host(mmc);