Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp758023ybi; Fri, 31 May 2019 08:29:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqyPTqnoCbuKBEaXAb+I1EjdxsWAL8mWUByyiQMhTWGPn78CL0NWFmRcR0gEy5xfIiOlO7iP X-Received: by 2002:a17:90a:bb82:: with SMTP id v2mr10389456pjr.73.1559316584399; Fri, 31 May 2019 08:29:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559316584; cv=none; d=google.com; s=arc-20160816; b=D+n7LRTuetekEjrZfWzNmOKJj1psIKRE5hc2Z9eyB+cUC9/saDyGyJO8E6fQkVRK+4 M+NwWuqmQOVBhyCQAO4r9ub4Va7I6ChEneQanGBpYRUrH5v17Gf/lH0Ii6Y7GYV2pINH WpFT+femNLUzp1OwT3QhTv0HyXl87X3VW2TOScb/Bg/Cj8uShDvjHryqmSbTzsoJ7CFi tP5bxJeTzZ6syXklR2x7sMZtQQlLPPGvAHEcGoAj3HdOzhiT7/2JCKW1ADkg+LRrH8im sh51jw6LmdDoj6HjCmuXiTbJQRflFsbBasqaADkSsSoy65XDxVU04NAXRM8QSWnZonoQ UBsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=rvc6q768rejEu9+swugzNbhvf/CXDX/J1sH3EPvyEOk=; b=LT8M4sYqtqKx3FwLRmglzLeaYwUQjWAkFjmWHV5Vmpv5BZtd3uo1DQKAq0XX5KlR5O Ap7UvNuSaBIberjogdbsUdbaNQrjpjhRZcgsddJqbCCq5wcm3TlBzT/5pUE00627M2nJ EYvGwzlKfIH6DGRqmqe2vKYkF/BjEjtPKr6osPJNV40KAvM4xATsA+W2y0hxd/egOPkY jdfP3q8t/bPtYU6WBaZ2MNJ1E1DyPAp7L7+3Hr01teHHnFWOkU+p4e7RK2m4fTsSugwY xtQVQ/zWuvlKw9SvzgCOu9CaKXygrLApgvWvLwNlrWHKULlIMJe5IHYv93yVo5d8WaBg Ncpg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b24si4638252pfd.156.2019.05.31.08.29.27; Fri, 31 May 2019 08:29:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726845AbfEaP2C (ORCPT + 99 others); Fri, 31 May 2019 11:28:02 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:18066 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726418AbfEaP2C (ORCPT ); Fri, 31 May 2019 11:28:02 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id CF5FD3F2C15E38F35514; Fri, 31 May 2019 23:27:57 +0800 (CST) Received: from localhost (10.133.213.239) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.439.0; Fri, 31 May 2019 23:27:48 +0800 From: YueHaibing To: , , , , CC: , , YueHaibing Subject: [PATCH -next] scsi: lpfc: Remove set but not used variables 'qp' Date: Fri, 31 May 2019 23:27:45 +0800 Message-ID: <20190531152745.7928-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.133.213.239] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes gcc '-Wunused-but-set-variable' warnings: drivers/scsi/lpfc/lpfc_init.c: In function lpfc_setup_cq_lookup: drivers/scsi/lpfc/lpfc_init.c:9359:30: warning: variable qp set but not used [-Wunused-but-set-variable] It's not used since commit e70596a60f88 ("scsi: lpfc: Fix poor use of hardware queues if fewer irq vectors") Signed-off-by: YueHaibing --- drivers/scsi/lpfc/lpfc_init.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c index 24965a06f55d..cd8e47544d07 100644 --- a/drivers/scsi/lpfc/lpfc_init.c +++ b/drivers/scsi/lpfc/lpfc_init.c @@ -9356,10 +9356,8 @@ static void lpfc_setup_cq_lookup(struct lpfc_hba *phba) { struct lpfc_queue *eq, *childq; - struct lpfc_sli4_hdw_queue *qp; int qidx; - qp = phba->sli4_hba.hdwq; memset(phba->sli4_hba.cq_lookup, 0, (sizeof(struct lpfc_queue *) * (phba->sli4_hba.cq_max + 1))); /* Loop thru all IRQ vectors */ -- 2.17.1