mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-20 06:06:23 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user