diff options
author | Bart Van Assche <bart.vanassche@sandisk.com> | 2015-06-05 01:57:20 +0300 |
---|---|---|
committer | James Bottomley <JBottomley@Odin.com> | 2015-06-13 18:50:41 +0300 |
commit | 5897cb2fc3016c9c2e4b1e3ec91d47522e08bd6e (patch) | |
tree | 3bba704db60ee6ba7159a15b429480e23c26a240 /drivers/scsi/qla2xxx/qla_os.c | |
parent | 8cd1943bf0e87f467a1b498c63483f70b18b43d7 (diff) | |
download | linux-5897cb2fc3016c9c2e4b1e3ec91d47522e08bd6e.tar.xz |
qla2xxx: Comment out unreachable code
Comment out the code that is never reached in qla83xx_idc_unlock()
and also in qlt_set_data_offset() to avoid that static source code
analysis tools report warnings for this code.
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Acked-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_os.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_os.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index 7462dd70b150..a28815b8276f 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c @@ -4418,7 +4418,10 @@ retry_lock2: void qla83xx_idc_unlock(scsi_qla_host_t *base_vha, uint16_t requester_id) { - uint16_t options = (requester_id << 15) | BIT_7, retry; +#if 0 + uint16_t options = (requester_id << 15) | BIT_7; +#endif + uint16_t retry; uint32_t data; struct qla_hw_data *ha = base_vha->hw; @@ -4454,6 +4457,7 @@ retry_unlock: return; +#if 0 /* XXX: IDC-unlock implementation using access-control mbx */ retry = 0; retry_unlock2: @@ -4469,6 +4473,7 @@ retry_unlock2: } return; +#endif } int |