qla2x00t-32gbit: Fix a compiler warning

Avoid that the compiler complains about 'qentry' and 'i' not being used
when building against an older kernel version.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8141 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2019-04-03 00:47:42 +00:00
parent cc8a7d0ae9
commit 62ffb82e11

View File

@@ -3763,8 +3763,6 @@ qla2x00_free_irqs(scsi_qla_host_t *vha)
{
struct qla_hw_data *ha = vha->hw;
struct rsp_que *rsp;
struct qla_msix_entry *qentry;
int i;
/*
* We need to check that ha->rsp_q_map is valid in case we are called
@@ -3775,6 +3773,9 @@ qla2x00_free_irqs(scsi_qla_host_t *vha)
rsp = ha->rsp_q_map[0];
if (ha->flags.msix_enabled) {
struct qla_msix_entry *qentry;
int i;
for (i = 0; i < ha->msix_count; i++) {
qentry = &ha->msix_entries[i];
if (qentry->have_irq) {