From: ran jianping Date: Sun, 24 Apr 2022 06:24:13 +0000 (+0000) Subject: scsi: qla2xxx: Remove unneeded flush_workqueue() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=cf97628fe1a1f25f3a5617fa10619d7bef904da1;p=linux.git scsi: qla2xxx: 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 --- diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index 762229d495a8c..73073fb08369c 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c @@ -3933,7 +3933,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; }