qla2x00t: Always check the qla2x00_wait_for_hba_online() return value

This patch suppresses the following Coverity complaint:

CID 364334 (#1 of 1): Unchecked return value (CHECKED_RETURN)
6. check_return: Calling qla2x00_wait_for_hba_online without checking return
   value (as is done elsewhere 8 out of 10 times).


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9421 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2021-05-19 14:12:39 +00:00
parent f94a74fc14
commit ccdb440ae4

View File

@@ -159,7 +159,7 @@ qla2x00_store_ini_mode_force_reverse(struct device *dev,
set_bit(ISP_ABORT_NEEDED, &base_vha->dpc_flags);
qla2xxx_wake_dpc(base_vha);
qla2x00_wait_for_hba_online(vha);
WARN_ON_ONCE(qla2x00_wait_for_hba_online(vha) != QLA_SUCCESS);
out:
return size;
@@ -1096,7 +1096,7 @@ qla2x00_sysfs_write_reset(struct file *file,
"Issuing MPI reset.\n");
/* Make sure FC side is not in reset */
qla2x00_wait_for_hba_online(vha);
WARN_ON_ONCE(qla2x00_wait_for_hba_online(vha) != QLA_SUCCESS);
/* Issue MPI reset */
scsi_block_requests(vha->host);