From patchwork Tue Jul 21 16:41:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 246925 Delivered-To: patch@linaro.org Received: by 2002:a54:2c11:0:0:0:0:0 with SMTP id g17csp2712528ecp; Tue, 21 Jul 2020 09:44:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQyv0hYt5/eBQTQzPthjLJuQVhI3fCrLXudenqdpaB6eBsS2pIbNvErtkmNmpzfzYql4uA X-Received: by 2002:a17:906:7a46:: with SMTP id i6mr25203430ejo.475.1595349852642; Tue, 21 Jul 2020 09:44:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595349852; cv=none; d=google.com; s=arc-20160816; b=QMzO/7lviVkf6IOIF+LG5QgM76zH4/f13rChK+cmf6aXwxXvgD3e7bkyusN3/DovUu if5HOj85uK/aNSipDsoBzBac1d3U9SHaHFCQ2NfI5ftQu/oy4JlIrZjvGnAkusvLKdFF lU8/xT7Ea0+iYwhJEyrZqw9o8pwBzmuHhYyR97wX2+PD8u6yneYUuJucI8rbLoUNb8cO /nvtIcdxeZbzsd5FwOUxk3x2e/lD6YSHW2zCJNJlG7kQa3xbpo0+2jkvSwmzXQWRSz6Y wGQuQ8vzoswFhUTbb/mxJGdwa1WqTRy0aQMNPvO+PdbM3BbDE9eduaL82dAn5VHz+JPh 0/WQ== 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=5IQF79/Wv1mUPoTk8SqKeP9+hRJHp1Ffrp6oNURN+/A=; b=nFXPYW5VaxsKhrAGsoAE6zumfsrs2SQVTn9W5+lIPgu4vOmgPU5xLLO6IcLkF0w0nZ 2/CA/qJJ/+VsJuzHBAjy7eJ3F4c+PoQoBfaBq5iCgXRg/0ZnGEmnw+RNGI28aLsMkEji +ofkVqZAJwOF5ByuGK0cqR56JfjwjcS4oO4jLDHUKn24sWNKJtpmGuqT4zh57Dt9QwmV WoyWmUspsnrhhbji2ia0vFEnAoaIGn3YbEx8Og/ohtICQUpBK590ntveUccl+CYs1fie ZTQoYb0YSFd/qQhcjzyheSfThpBreo53B0wJR7UD3M7uhnL8zQkvA4THD1pQN7rVwN7Y uaBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LzgdXiYX; 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 v6si12396995ejw.169.2020.07.21.09.44.12 for ; Tue, 21 Jul 2020 09:44: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=LzgdXiYX; 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 S1730896AbgGUQn5 (ORCPT ); Tue, 21 Jul 2020 12:43:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730698AbgGUQmd (ORCPT ); Tue, 21 Jul 2020 12:42:33 -0400 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5ACBCC0619DD for ; Tue, 21 Jul 2020 09:42:33 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id f139so3531888wmf.5 for ; Tue, 21 Jul 2020 09:42:33 -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=5IQF79/Wv1mUPoTk8SqKeP9+hRJHp1Ffrp6oNURN+/A=; b=LzgdXiYXm8zVDI4RC+BrUGSVWlFLyJqYdB1iaOCBPFp/Y/9S7UKPB5YByb1mUk54yh 0KOQXEzz/+8J9730MRxUhJFe36/HsFurYjUOAYWttJGuiiVMafqABPsf64z8fmo//U/P 9dMjF1s+AcOWvFQedS1/ZhkjpOVbWRZzMbUnL0leFqrwVFSZ/KHpI5fLVzAFr7mKkDZw ga2fdoa5ASdnDPb9vv4MftdM5whshVCZta0JKHTRqGBHoTWtpMKVRoMvMiosJJAtXRKH iCe/e7GZ0gNVTRpw3jQ3qbdMTQQRs+lsZeX1LTFiTreTV+/Htk6bQV2X4o+7x2ojW/DZ deuQ== 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=5IQF79/Wv1mUPoTk8SqKeP9+hRJHp1Ffrp6oNURN+/A=; b=A5JQb0Wonn2vmjnvzpRa5WvuKhoDrSx0vz3dE0jNecBA4BiAk5X7DeAkcdqwYaJ6sU Exg8cV73hT4oAEO0j62LxucHu7+fOCcgKb1dOtVi7Qbg7PxyIZNdNhv+HGqzlscBZQbr ryHCr//AwH+ZVyJAt9RZb1108aZ/rrMAgvJs251uV3IHTzFLAvSDaCCGIu+X9N+TQjwR +CXE29VZsSTqLtXfrvZDSCB7yrLv72VQxAYp7NJQ5djSyVmm0dUaP2GrY97ZGPR0n6KG k+savIJQk119yzhzJOQDuRr2Qb0YtKLuHcNwc2YkMsxV2y3HgWfX8gjK6s8dbYcxa2CL FUUQ== X-Gm-Message-State: AOAM531Uf6R9LQF3Ikr2f7A3aYKsWpnl0SOurrrO1ODupgXbsOX2Y6wo geGGLD7PjT36qSTpIc9W9NjRFv7VVd8= X-Received: by 2002:a1c:e209:: with SMTP id z9mr4858080wmg.153.1595349752090; Tue, 21 Jul 2020 09:42:32 -0700 (PDT) Received: from localhost.localdomain ([2.27.167.94]) by smtp.gmail.com with ESMTPSA id m4sm3933524wmi.48.2020.07.21.09.42.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jul 2020 09:42:31 -0700 (PDT) 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 24/40] scsi: pm8001: pm8001_hwi: Remove unused variable 'value' Date: Tue, 21 Jul 2020 17:41:32 +0100 Message-Id: <20200721164148.2617584-25-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200721164148.2617584-1-lee.jones@linaro.org> References: <20200721164148.2617584-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-scsi-owner@vger.kernel.org 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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.25.1 diff --git a/drivers/scsi/pm8001/pm8001_hwi.c b/drivers/scsi/pm8001/pm8001_hwi.c index e9a939230b152..3368106320194 100644 --- a/drivers/scsi/pm8001/pm8001_hwi.c +++ b/drivers/scsi/pm8001/pm8001_hwi.c @@ -412,7 +412,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 @@ -463,7 +463,6 @@ 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_cw32(pm8001_ha, 2, 0xd8, 0x8000C016); /*set the shifted destination address to 0x0 to avoid error operation */