Commit ba4494d4 authored by Hannes Reinecke's avatar Hannes Reinecke Committed by Martin K. Petersen

scsi: mpt3sas: set default value for cb_idx

No functional change
Signed-off-by: default avatarHannes Reinecke <hare@suse.com>
Signed-off-by: default avatarSuganath Prabu S <suganath-prabu.subramani@broadcom.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 25b8e08e
...@@ -899,7 +899,7 @@ static u8 ...@@ -899,7 +899,7 @@ static u8
_base_get_cb_idx(struct MPT3SAS_ADAPTER *ioc, u16 smid) _base_get_cb_idx(struct MPT3SAS_ADAPTER *ioc, u16 smid)
{ {
int i; int i;
u8 cb_idx; u8 cb_idx = 0xFF;
if (smid < ioc->hi_priority_smid) { if (smid < ioc->hi_priority_smid) {
i = smid - 1; i = smid - 1;
...@@ -910,8 +910,7 @@ _base_get_cb_idx(struct MPT3SAS_ADAPTER *ioc, u16 smid) ...@@ -910,8 +910,7 @@ _base_get_cb_idx(struct MPT3SAS_ADAPTER *ioc, u16 smid)
} else if (smid <= ioc->hba_queue_depth) { } else if (smid <= ioc->hba_queue_depth) {
i = smid - ioc->internal_smid; i = smid - ioc->internal_smid;
cb_idx = ioc->internal_lookup[i].cb_idx; cb_idx = ioc->internal_lookup[i].cb_idx;
} else }
cb_idx = 0xFF;
return cb_idx; return cb_idx;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment