From 62ffb82e11de87396bef0748518b7154f6561ef6 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 3 Apr 2019 00:47:42 +0000 Subject: [PATCH] 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 --- qla2x00t-32gbit/qla_isr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qla2x00t-32gbit/qla_isr.c b/qla2x00t-32gbit/qla_isr.c index 8db67f9f8..5fec6c7f2 100644 --- a/qla2x00t-32gbit/qla_isr.c +++ b/qla2x00t-32gbit/qla_isr.c @@ -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) {