Message ID | 20210312094738.2207817-29-lee.jones@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp1050661jai; Fri, 12 Mar 2021 01:49:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJzRJIPPE+GVdBgr+1mM55WE32bgEJkOhwvRn7rA8+qMCFj3wYwhUXZMpRHrC/EfxShfDHb7 X-Received: by 2002:a05:6402:1a4f:: with SMTP id bf15mr13194711edb.304.1615542569314; Fri, 12 Mar 2021 01:49:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615542569; cv=none; d=google.com; s=arc-20160816; b=sH0zog0Wq00ez4BfXUX0fGh82/jzkNZqInjAa3JtrBsOYkvvaE/LmjEu+BehD2nxAC lzZRFe8l0M2v4jSjrNIPK1YjYIDrB4pbR7EXHKx9s8TxqcYjPi41xjsLvGyu9KrgBmw4 gG7fx4u6q7ZgTX1tpsmQS1V5GeA7EluXz9yLd7w37ktwGchbczs9kMfDGQ7NfpVaPo6W TSaTGbnNCTdaVBGahmEFDXqs4JJfrZq5YeiExLag9WFBdX7Kz1xjQP7gpZMmgBbFFHel coMYOvAILNc4FFe802whKtqVfpBbTjKA98KpeYjL2ckgDfZxxDFA2vKP7H6AlQWHc8vB sEjA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=6g1k4NOJoIyIgRaKDu88zZvT9OX+R02WPv1Cq13vbSs=; b=DF5t+Tk4BXTBmbYXBjgzw5+mBF+JsglbDZHbfNt5kD2gGAuDEa4zD1c9WF/2Mq8rtl hlyI4p5uUhSdrSYjq3MYA3VIDTZickzwJxloB4PvfpaPWRaL8XBrRZylibuZnZEEWguo aDPtH7h4fXf42nck28mEjWu/C+y7IfTsIoNB7CA7To0ejRXJ8EbUontyGsKMludLLfC1 G5vApe9lhy7DMksxUmAJaiJHVkW1LVn5j1ffaKJ9PtwDRh9inSId0BItBV1sk7NZKkE6 qQtncugO9oYgbvcV3Vq001aEitOr1TJUFwBxcMsbIB8jqqR1KennZtSD5QF2sgS7txqo QZKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GCHdIzAf; 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 cf6si3710544ejb.272.2021.03.12.01.49.29 for <patch@linaro.org>; Fri, 12 Mar 2021 01:49:29 -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=GCHdIzAf; 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 S233302AbhCLJss (ORCPT <rfc822;patch@linaro.org>); Fri, 12 Mar 2021 04:48:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233131AbhCLJsS (ORCPT <rfc822; linux-scsi@vger.kernel.org>); Fri, 12 Mar 2021 04:48:18 -0500 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFC86C061764 for <linux-scsi@vger.kernel.org>; Fri, 12 Mar 2021 01:48:17 -0800 (PST) Received: by mail-wm1-x32d.google.com with SMTP id o26so3398747wmc.5 for <linux-scsi@vger.kernel.org>; Fri, 12 Mar 2021 01:48:17 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=6g1k4NOJoIyIgRaKDu88zZvT9OX+R02WPv1Cq13vbSs=; b=GCHdIzAfYgsCay1B9SS+ZnYX0FYvTV60z5kscOccdfQV3WQUrWFvmOu2dh4+gP89WM bvP80g3F7eroGfdguGDDSx4CjsyHon4vWTUBzei/1s99cuO2eHYz98pRvVCveRwwSwZT UYokGX4YRNP/W1xJhVn7xnIXvDQXNT3mTKcbs5L8MLLRiQ/5prYIip+cmM/E3f8FCKhl UytLiD2rl+tZT9E8/edeF5IccIxaFomixfihGZWAxohzM5NqsjEn4eSj1ufE14Po8N1j ltteuMX4MDBUHBaTcngGraUBgKyxbrxHyLdhkIiDG3krqtoTR6rsQebt+C1bLmiKbJBV 3LSw== 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=6g1k4NOJoIyIgRaKDu88zZvT9OX+R02WPv1Cq13vbSs=; b=diFoeA4OrM97SCyV6uP9iRd6NtDdOwISe3755vXzGZDvynUQJVUbyy6tYpBcNUOwWZ C15UYt+w9TBK3bg0aHx1wcJeVzQ1bPhy9H1N8cpBVg/UU8uM8XVmgoFeZW6flmvfTtr8 HQuEEdwFvPey/JaCCOE8gif27fic0SS5gykcr82bhTR2IQ+wWubY9paU3ciGaCYyaYCX EaiuJC/mjWNa376kxF5rBD6fN5G/bMlk8q21RtaxZ2pyuI8uh77jx7KaiP4aY+1bwHsk J8KfiAOnJTJqW+sPQSYaLX3A1T2PNznyAOGwIjgsgcCxTzOPmh5GR4csW5DRlpz/z+MU hgGw== X-Gm-Message-State: AOAM532yO/ras6yEW6ayIqJK8kUY/SfBhzeag5oZzeqX3nBZppmSXkwy /tfg0K6Vb5vHl0HOQI9com8EYg== X-Received: by 2002:a1c:7916:: with SMTP id l22mr12001434wme.86.1615542496455; Fri, 12 Mar 2021 01:48:16 -0800 (PST) Received: from dell.default ([91.110.221.204]) by smtp.gmail.com with ESMTPSA id f7sm1539536wmq.11.2021.03.12.01.48.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Mar 2021 01:48:16 -0800 (PST) From: Lee Jones <lee.jones@linaro.org> To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Adam Radford <aradford@gmail.com>, "James E.J. Bottomley" <jejb@linux.ibm.com>, "Martin K. Petersen" <martin.petersen@oracle.com>, Joel Jacobson <linux@3ware.com>, de Melo <acme@conectiva.com.br>, Andre Hedrick <andre@suse.com>, linux-scsi@vger.kernel.org Subject: [PATCH 28/30] scsi: 3w-xxxx: Remove 2 unused variables 'response_que_value' and 'tw_dev' Date: Fri, 12 Mar 2021 09:47:36 +0000 Message-Id: <20210312094738.2207817-29-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210312094738.2207817-1-lee.jones@linaro.org> References: <20210312094738.2207817-1-lee.jones@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <linux-scsi.vger.kernel.org> X-Mailing-List: linux-scsi@vger.kernel.org |
Series |
Rid W=1 warnings in SCSI
|
expand
|
diff --git a/drivers/scsi/3w-xxxx.c b/drivers/scsi/3w-xxxx.c index d90b9fca4aea2..a7292883b72bc 100644 --- a/drivers/scsi/3w-xxxx.c +++ b/drivers/scsi/3w-xxxx.c @@ -460,12 +460,12 @@ static int tw_check_errors(TW_Device_Extension *tw_dev) /* This function will empty the response que */ static void tw_empty_response_que(TW_Device_Extension *tw_dev) { - u32 status_reg_value, response_que_value; + u32 status_reg_value; status_reg_value = inl(TW_STATUS_REG_ADDR(tw_dev)); while ((status_reg_value & TW_STATUS_RESPONSE_QUEUE_EMPTY) == 0) { - response_que_value = inl(TW_RESPONSE_QUEUE_REG_ADDR(tw_dev)); + inl(TW_RESPONSE_QUEUE_REG_ADDR(tw_dev)); status_reg_value = inl(TW_STATUS_REG_ADDR(tw_dev)); } } /* End tw_empty_response_que() */ @@ -1342,10 +1342,8 @@ static int tw_scsi_biosparam(struct scsi_device *sdev, struct block_device *bdev sector_t capacity, int geom[]) { int heads, sectors, cylinders; - TW_Device_Extension *tw_dev; dprintk(KERN_NOTICE "3w-xxxx: tw_scsi_biosparam()\n"); - tw_dev = (TW_Device_Extension *)sdev->host->hostdata; heads = 64; sectors = 32;
Fixes the following W=1 kernel build warning(s): drivers/scsi/3w-xxxx.c: In function ‘tw_empty_response_que’: drivers/scsi/3w-xxxx.c:463:24: warning: variable ‘response_que_value’ set but not used [-Wunused-but-set-variable] drivers/scsi/3w-xxxx.c: In function ‘tw_scsi_biosparam’: drivers/scsi/3w-xxxx.c:1345:23: warning: variable ‘tw_dev’ set but not used [-Wunused-but-set-variable] Cc: Adam Radford <aradford@gmail.com> Cc: "James E.J. Bottomley" <jejb@linux.ibm.com> Cc: "Martin K. Petersen" <martin.petersen@oracle.com> Cc: Joel Jacobson <linux@3ware.com> Cc: de Melo <acme@conectiva.com.br> Cc: Andre Hedrick <andre@suse.com> Cc: linux-scsi@vger.kernel.org Signed-off-by: Lee Jones <lee.jones@linaro.org> --- drivers/scsi/3w-xxxx.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) -- 2.27.0