mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 12:44:03 +02:00
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:
parent
b79b88b655
commit
ff9365a4c9
|
|
@ -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 &&
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user