From patchwork Mon Nov 16 10:41:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 324372 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp3211828ils; Mon, 16 Nov 2020 02:42:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJyPYN0nPUASf2n49D4XpI8x9BWSo68wHLdR1xrw1TIY6gLuxq9ywz0Uz+FhMP4D9BKVZJVz X-Received: by 2002:a17:906:1a07:: with SMTP id i7mr13377199ejf.473.1605523325665; Mon, 16 Nov 2020 02:42:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605523325; cv=none; d=google.com; s=arc-20160816; b=LMVKLpsq+pr3iWileNLrDOfKkQHbY2ja8qPDEpc/R3zCF8NlL+/sqsBg250rBnFufA UQ5V8+bVZ/cvZEE9apAdi9Swr+/yEVjrDnOFxMnKsq226E5K5TncJHlR+BR5/H0mqMkH QlqqPcM4/0R/xOobPZPsHdJaWg+6Kit8oX/iTf7Hch5ByBlU5Ja80f9hKAh5V2qn/+DK i96MUvJGr0vRFa3RW2NJphYMd1Zg5wEWb9DXFr0HhMH2/YNwXbwXnVty8gFK4Qttbiyo fisLrw4kBAPlGSuDQYXUZuEYlXpjvacmWKfwG0U0ipXhKG7NKe3UrCRShv9di8qICnFF +sCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=GNUQO66qrdOdHSIIOO/s1hb0xndxqjBt91UQm30+zSM=; b=DzzgWPVWfd5xcyLqeR+SHAOXWNbQ1m+ezdyqpjrNBYaJ+NxSrPFkApKwXjxO/Xo1do O/c++hnnK+F3cOJvEFfOhk3Ag8wyrCS7+On2H6z2NFt+PfyLOehFUM06QQItVzOgXUpW 6zHa/jpnc9Gysg4yFbEEiozrjIdXacau3sc0Xgjnd44NcHA0LJZ2y+ZMQ7Y2y4dEDNqY 1ctPETc/fvH6abxQ1QG5u2rqyuxFPoRqkQzm1LorbQnCVpKAYSBLVhJ10mhbHD/AGz9Q YK1EcBvtoI48ylnXHOkGedx7VhltORQyMkPdcflrmrbjH+uFAe6R8BdWx/M83zvCsetT zcRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eaBdGU3R; 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: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ch5si11683235edb.190.2020.11.16.02.42.05 for ; Mon, 16 Nov 2020 02:42:05 -0800 (PST) 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=eaBdGU3R; 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 S1728511AbgKPKl1 (ORCPT ); Mon, 16 Nov 2020 05:41:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726281AbgKPKl1 (ORCPT ); Mon, 16 Nov 2020 05:41:27 -0500 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E116FC0613CF for ; Mon, 16 Nov 2020 02:41:26 -0800 (PST) Received: by mail-wm1-x342.google.com with SMTP id a65so23170915wme.1 for ; Mon, 16 Nov 2020 02:41:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=GNUQO66qrdOdHSIIOO/s1hb0xndxqjBt91UQm30+zSM=; b=eaBdGU3RDogVhMoxMVTWKeu5mCzcJ6EkO8wmaLAffBpNuaRTr0/bYPye/tXTGVA/YJ L8BSx6nD+tYs5O25wmLBv0Kvz+Vl/I+7vjxPjWQLcrdyT5tq4/rgtJiVBF44h2gi00X9 kwfkMIx0yLKM5p5bTprZ8xdcgCcjzOE7iSDdXBjWqDrT6m5cx1HWO700kRVq37o4Cj0s x/9fIDCU4AGoPFmtWnhuk3ltC4ShrEBqsuXRdxBoUkAw1+4b7YHZRxlLWz7S5CtzY7Cm qBuVIGaqu0gVeNl1DpufDrmA/1K3OVAZWaOHsza6XOG6W40xjGwdpIaC8zVHuOa6Ev2Y RsvA== 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:mime-version :content-transfer-encoding; bh=GNUQO66qrdOdHSIIOO/s1hb0xndxqjBt91UQm30+zSM=; b=KR/5Af2i4qO7s9W30RSpzWsOIyQfy5/+LFBSupTbyYJfwROt9MLecaf8amVDQvAo7K escejvspRohVCw6/063bxFBovFKCtJL7m1MQ88mBejSCshmlyCJAyRu6m2Gc5S1vBcxN ePuYGYTFKV9uQh3ejHLF/zz2+YZxmxtZI1B2OP3cmDJ0R1om1wApnbZtD1vYNO2Gt8Sf Q2vkQ7CEXnrG6YnEny/tTvcSR+crW/OQfmFRwrT2jXbIvHh/q/PdeknfINTAPdhD+aPl HjQgm3ArYyWhh1wb9CF7FGuyT+CcVOq8UkdVLO85wj4nbcdfEY7LSV6LUV3y5eCg3BNw 8gVA== X-Gm-Message-State: AOAM532p+DY41Ot6+Iy4R7pohuiUXUB6KJ1wBy2xOzA4DMzrMgWs3DLg B0ybu0pm+bzosNKRLlbySaxBvA== X-Received: by 2002:a1c:2c2:: with SMTP id 185mr14991445wmc.103.1605523285546; Mon, 16 Nov 2020 02:41:25 -0800 (PST) Received: from dell.default ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id o197sm18729720wme.17.2020.11.16.02.41.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 02:41:24 -0800 (PST) From: Lee Jones To: jejb@linux.ibm.com, martin.petersen@oracle.com Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, Lee Jones , Jack Wang Subject: [PATCH 1/1] scsi: pm8001: pm8001_hwi: Remove unused variable 'value' Date: Mon, 16 Nov 2020 10:41:19 +0000 Message-Id: <20201116104119.816527-1-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Hasn't been used since 2009. Fixes the following W=1 kernel build warning(s): drivers/scsi/pm8001/pm8001_hwi.c: In function ‘mpi_set_phys_g3_with_ssc’: drivers/scsi/pm8001/pm8001_hwi.c:415:6: warning: variable ‘value’ set but not used [-Wunused-but-set-variable] Cc: Jack Wang Signed-off-by: Lee Jones --- drivers/scsi/pm8001/pm8001_hwi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.25.1 Acked-by: Jack Wang diff --git a/drivers/scsi/pm8001/pm8001_hwi.c b/drivers/scsi/pm8001/pm8001_hwi.c index 2054c2b03d928..0a1e09b1cd580 100644 --- a/drivers/scsi/pm8001/pm8001_hwi.c +++ b/drivers/scsi/pm8001/pm8001_hwi.c @@ -416,7 +416,7 @@ int pm8001_bar4_shift(struct pm8001_hba_info *pm8001_ha, u32 shiftValue) static void mpi_set_phys_g3_with_ssc(struct pm8001_hba_info *pm8001_ha, u32 SSCbit) { - u32 value, offset, i; + u32 offset, i; unsigned long flags; #define SAS2_SETTINGS_LOCAL_PHY_0_3_SHIFT_ADDR 0x00030000 @@ -467,7 +467,7 @@ static void mpi_set_phys_g3_with_ssc(struct pm8001_hba_info *pm8001_ha, so that the written value will be 0x8090c016. This will ensure only down-spreading SSC is enabled on the SPC. *************************************************************/ - value = pm8001_cr32(pm8001_ha, 2, 0xd8); + pm8001_cr32(pm8001_ha, 2, 0xd8); pm8001_cw32(pm8001_ha, 2, 0xd8, 0x8000C016); /*set the shifted destination address to 0x0 to avoid error operation */