Message ID | 20200723122446.1329773-32-lee.jones@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a54:2c11:0:0:0:0:0 with SMTP id g17csp1148457ecp; Thu, 23 Jul 2020 05:26:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw27nwR/uKsT/ELOqaC/Wi8w+7HrzJxEDSXPnffHuXmkOjdZOm52Vvys0OpTb6C21Q9xcsE X-Received: by 2002:a17:906:c201:: with SMTP id d1mr4094508ejz.40.1595507172864; Thu, 23 Jul 2020 05:26:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595507172; cv=none; d=google.com; s=arc-20160816; b=IMx84pfGikVeXtm8e33qW3/+k6tUtKDh/7+tOS+nRfXXKW4TI03SKQTeodiryC3Wq+ gu4Y4G51p+Mf44YLftw8EAh7vsIMMiiZdbZJrAajWj6YecPZLjl9vtLWQ8uaHydkzGmX T+aADvxvJwl9P9K5mTfgL9DfJ4T2YCHmLwFa8kLVPnGka/EkhoMx8koGaEH1l/ES1TgP yzRPFyuCf8JpIZuq8tYIdA3/2a6RCY+ufwdcb40OufnvdpkSNgA6HIZmHSHQGrwoBevC BW8IUDDryR0jJdGBI6t0f3/26KkIq1EzIflrWF6lsAorn2lbutgRsOG9HhKdhFiKzGRj oyPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=duCZHMtFtzXyExTB0Q+GFLV/xuB9l4Kwhqee+hE7dLA=; b=qwxkLKAWLXfJPM9IoOW+1Yh1NjYnvJP7Mg/GolRqgoxPna6rNLAHPcEc13NqeaaGn1 nCujs4wIWahLzGFxyuz6Z/t7C0sjsj1+5exiOj1wgnh7eHbF4Gab6vma9CZicucV+00j plQMj59E2akn1TDYwL9eMTaDQ333oflirYPlGTDT7q6napw2nTYE4HzWFjxPbRw1SM5I jLOeaMQcnI8xvQrgARwkbdz9rBWFiprVtSa/9ceLN46UXWThmmPObk5DIktLnAfcd5gX xECdaCsuCHtWYeGIlkUDFOIkGRjMpRc02Dpi2jfpbFC3DmaY6u5hVYvViSaYmKE2tLxD fuAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=p6b8PeJs; spf=pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <linux-scsi-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bi20si1699073ejb.365.2020.07.23.05.26.12 for <patch@linaro.org>; Thu, 23 Jul 2020 05:26:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=p6b8PeJs; spf=pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729204AbgGWM0I (ORCPT <rfc822;patch@linaro.org>); Thu, 23 Jul 2020 08:26:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729048AbgGWMZ3 (ORCPT <rfc822; linux-scsi@vger.kernel.org>); Thu, 23 Jul 2020 08:25:29 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05B3AC0619E2 for <linux-scsi@vger.kernel.org>; Thu, 23 Jul 2020 05:25:29 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id 184so5022898wmb.0 for <linux-scsi@vger.kernel.org>; Thu, 23 Jul 2020 05:25:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=duCZHMtFtzXyExTB0Q+GFLV/xuB9l4Kwhqee+hE7dLA=; b=p6b8PeJsRy24yesc+jDHDCth5H78oH46TXSpWJZbKpx2gl2sHbf6+G4Zf3tTMTd5wG felIDQJm3gax6G04NzCKrDn3bPW0GP/sdmSkdMNWcDQf21x66X5T7xQGe9sh2TQub5S5 BJE0FB+lKwSkoatc+Rl/X+vvcEZz9uDbV/g7WX5rWzcuO/qbZZ7GTxGYwvZBPvazZPVW R8842FCKWP7O2UtL3Zw0Hki5lNq/XRt/nVfLA9APCoLIrHLQEdUQet5LRcJDsfXwHEmo oUrP9MIaPgd2VY8yDP/KVBjjT0nGVVXk9aDYjnlFMdMVMrjVzXTS3Sa52EZ2386Qf6eO 7oRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=duCZHMtFtzXyExTB0Q+GFLV/xuB9l4Kwhqee+hE7dLA=; b=ukGJnL22oaWQgC8Wuw812ZK/cNXpcVmBRMre9tKLFKAjytTi0jBiL+PGv4z2MzRPGO AQmh9H6GvbLJq+94/tsLH4MfIAbYHb8xR1qolg0FOcouBxRPr3jCUasadPkDVjuPEU30 aJchoDpBVY4aNHHuLaPSe11VTyd8llYamTtC4ntwxnU1cxV6rHM6pbyxGP4uVbClFY9e CxIKQBGzi7dAb+IVbERqIh5DwEyNZls6Y1uiq+S47smmn5Sur1X03SiixWeXaalon0hR rLULnNToJi7E8DssBS1k37rltsG5hlMQPYM73RyKAPQaoxBGPMzaZ6eTiom+fPGniFao 08jA== X-Gm-Message-State: AOAM531PXNtD3tFadUvSYRyrtRcEE6/8VscVBYuLWALEsUS+cwGx6NEi CzAiT2BscZ949Sokwr2M6PhqdQ== X-Received: by 2002:a1c:790c:: with SMTP id l12mr3922801wme.50.1595507127792; Thu, 23 Jul 2020 05:25:27 -0700 (PDT) Received: from localhost.localdomain ([2.27.167.73]) by smtp.gmail.com with ESMTPSA id j5sm3510651wma.45.2020.07.23.05.25.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jul 2020 05:25:27 -0700 (PDT) From: Lee Jones <lee.jones@linaro.org> To: jejb@linux.ibm.com, martin.petersen@oracle.com Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, Lee Jones <lee.jones@linaro.org>, QLogic-Storage-Upstream@cavium.com Subject: [PATCH 31/40] scsi: qedi: qedi_fw: Remove set but unused variable 'tmp' Date: Thu, 23 Jul 2020 13:24:37 +0100 Message-Id: <20200723122446.1329773-32-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200723122446.1329773-1-lee.jones@linaro.org> References: <20200723122446.1329773-1-lee.jones@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: <linux-scsi.vger.kernel.org> X-Mailing-List: linux-scsi@vger.kernel.org |
Series |
Set 5: Penultimate set of SCSI related W=1 warnings
|
expand
|
diff --git a/drivers/scsi/qedi/qedi_fw.c b/drivers/scsi/qedi/qedi_fw.c index 946cebc4c9322..6ed74583b1b9b 100644 --- a/drivers/scsi/qedi/qedi_fw.c +++ b/drivers/scsi/qedi/qedi_fw.c @@ -352,7 +352,6 @@ static void qedi_put_rq_bdq_buf(struct qedi_ctx *qedi, struct iscsi_cqe_unsolicited *cqe, int count) { - u16 tmp; u16 idx = 0; struct scsi_bd *pbl; @@ -381,10 +380,10 @@ static void qedi_put_rq_bdq_buf(struct qedi_ctx *qedi, qedi->bdq_prod_idx += count; writew(qedi->bdq_prod_idx, qedi->bdq_primary_prod); - tmp = readw(qedi->bdq_primary_prod); + readw(qedi->bdq_primary_prod); writew(qedi->bdq_prod_idx, qedi->bdq_secondary_prod); - tmp = readw(qedi->bdq_secondary_prod); + readw(qedi->bdq_secondary_prod); } static void qedi_unsol_pdu_adjust_bdq(struct qedi_ctx *qedi,
Fixes the following W=1 kernel build warning(s): drivers/scsi/qedi/qedi_fw.c: In function ‘qedi_put_rq_bdq_buf’: drivers/scsi/qedi/qedi_fw.c:355:6: warning: variable ‘tmp’ set but not used [-Wunused-but-set-variable] Cc: QLogic-Storage-Upstream@cavium.com Signed-off-by: Lee Jones <lee.jones@linaro.org> --- drivers/scsi/qedi/qedi_fw.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) -- 2.25.1