qla2x00t-32gbit/qla_isr.c: Fix a sparse complaint

Avoid that the 'sparse' static checker complains that the ha->msix_entries[]
array can be accessed outside its bounds. 


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8310 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2019-05-02 00:01:08 +00:00
parent 478ee96c23
commit f9b50fa1e3
+2 -1
View File
@@ -3613,7 +3613,8 @@ msix_failed:
/* Enable MSI-X vectors for the base queue */
for (i = 0; i < QLA_BASE_VECTORS; i++) {
WARN(i >= ha->msix_count, "%d > %d\n", i, ha->msix_count);
if (WARN(i >= ha->msix_count, "%d > %d\n", i, ha->msix_count))
break;
qentry = &ha->msix_entries[i];
qentry->handle = rsp;
rsp->msix = qentry;