scsi: qla2xxx: Fix an error code in qla_get_tmf()

Negative -EIO was intended instead of positive EIO.  The caller, doesn't
care so this doesn't affect runtime.  It's just a cleanup.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Link: https://patch.msgid.link/an1taxANE_4_vzJT@stanley.mountain
Signed-off-by: Martin K. Petersen (Oracle) <mkp@kernel.org>
This commit is contained in:
Dan Carpenter 2026-08-13 10:08:27 +03:00 committed by Martin K. Petersen (Oracle)
parent b79b88b655
commit ff9365a4c9

View File

@ -2302,7 +2302,7 @@ int qla_get_tmf(struct tmf_arg *arg)
if (TMF_NOT_READY(fcport)) {
ql_log(ql_log_warn, vha, 0x802c,
"Unable to acquire TM resource due to disruption.\n");
rc = EIO;
rc = -EIO;
break;
}
if (ha->active_tmf < MAX_ACTIVE_TMF &&