From f36a96158b0f7b38d34aaa0d19810c2e206a8df3 Mon Sep 17 00:00:00 2001 From: Gleb Chesnokov Date: Wed, 15 Jun 2022 20:10:39 +0300 Subject: [PATCH] qla2x00t-32gbit: Remove unneeded flush_workqueue() All work currently pending will be done first by calling destroy_workqueue(). There is no need to flush it explicitly. Link: https://lore.kernel.org/r/20220424062413.3220315-1-ran.jianping@zte.com.cn Reported-by: Zeal Robot Signed-off-by: ran jianping Signed-off-by: Martin K. Petersen [ commit cf97628fe1a1 upstream ] --- qla2x00t-32gbit/qla_os.c | 1 - 1 file changed, 1 deletion(-) diff --git a/qla2x00t-32gbit/qla_os.c b/qla2x00t-32gbit/qla_os.c index cedba4271..bee05d8de 100644 --- a/qla2x00t-32gbit/qla_os.c +++ b/qla2x00t-32gbit/qla_os.c @@ -3966,7 +3966,6 @@ qla2x00_free_device(scsi_qla_host_t *vha) /* Flush the work queue and remove it */ if (ha->wq) { - flush_workqueue(ha->wq); destroy_workqueue(ha->wq); ha->wq = NULL; }