qla2x00t-32gbit: Fix an loop timeout test

This loop timeout with "retries" set to -1, not 0.  Fix the test for
failure.

Fixes: 7ec0effd30bb ("[SCSI] qla2xxx: Add support for ISP8044.")
Signed-off-by: Dan Carpenter <error27@gmail.com>
Link: https://patch.msgid.link/an1twcxTYSFkkUTA@stanley.mountain
Signed-off-by: Martin K. Petersen (Oracle) <mkp@kernel.org>

[ commit 11e48f5201fd86ffa038809dd9c41144d43ee2e4 upstream ]
This commit is contained in:
Dan Carpenter
2026-10-19 17:38:13 +03:00
committed by Gleb Chesnokov
parent 4c9b7d4f0c
commit 5eeaedbe02
+1 -1
View File
@@ -3507,7 +3507,7 @@ qla8044_poll_flash_status_reg(struct scsi_qla_host *vha)
msleep(QLA8044_FLASH_STATUS_REG_POLL_DELAY);
}
if (!retries)
if (retries == -1)
ret_val = QLA_FUNCTION_FAILED;
return ret_val;