From 81c207d37dd235a9670696bf536e01122bd75ece Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 3 Nov 2019 00:15:34 +0000 Subject: [PATCH] qla2x00t-32gbit, qla_isr.c: Minimize diffs with the upstream code git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8624 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- qla2x00t-32gbit/qla_isr.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/qla2x00t-32gbit/qla_isr.c b/qla2x00t-32gbit/qla_isr.c index e5520911c..0b9eb5b7f 100644 --- a/qla2x00t-32gbit/qla_isr.c +++ b/qla2x00t-32gbit/qla_isr.c @@ -3797,6 +3797,8 @@ 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 @@ -3807,9 +3809,6 @@ 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) {