Commit cf97628f authored by ran jianping's avatar ran jianping Committed by Martin K. Petersen
Browse files

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: default avatarZeal Robot <zealci@zte.com.cn>
Signed-off-by: default avatarran jianping <ran.jianping@zte.com.cn>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 4c0df601
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -3933,7 +3933,6 @@ qla2x00_free_device(scsi_qla_host_t *vha)


	/* Flush the work queue and remove it */
	/* Flush the work queue and remove it */
	if (ha->wq) {
	if (ha->wq) {
		flush_workqueue(ha->wq);
		destroy_workqueue(ha->wq);
		destroy_workqueue(ha->wq);
		ha->wq = NULL;
		ha->wq = NULL;
	}
	}