From patchwork Wed Mar 17 08:56:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 403050 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp284051jai; Wed, 17 Mar 2021 01:58:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwpUd7fuP/wCGWKygbHFWMTqBMiGY+EvtrNAg5TjNpvBcL4bWtih+xCln8oMHNgIaFv8Du X-Received: by 2002:a17:907:2bf6:: with SMTP id gv54mr34718654ejc.514.1615971503103; Wed, 17 Mar 2021 01:58:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615971503; cv=none; d=google.com; s=arc-20160816; b=TneiVUPR7Vv6KRBO3RGmaEXAyBgjCh1eu+ZIa6RppnHYVl28ZIX7+JbsMSz6nBJjnC szPfYXOC+OvtO9EzmTJ+qUqxRm+SAUQAb9BTvO/UlYM0KjzwHiPv/SRRF5QSKpF5rr0r lSnpCjlA88Htu6mF7p6j5akeLRakdrauCZACfhbB2yLUsLuWL1z1k+yS/WL8vAarifDh YSWPsSrdN4dzYsXYMGIP1jCPvJKqNU2n6C45MDLiWaDWLp6Vyqm2DvCGt9i5zEVteHmS IqLuHhP6mka6N9hM3yByPj9Xg8meCJJAYMNQN4NZ0rcPWL5ITEu80I1gVla2Pf3e8o1c sFvw== 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=k0RI9738E0HHQHJVhUq3svrAJyf6uIHAigrIqaNKtSUaACd41CAJc4+/SukUUWb3LT XiHzEeUD8leXr0pXJdgP1QEkaTrm1qS5AnMGmQHFuJIbIITAdCUEm1KoMLn+9YkA9XDv xYRtpNBKjBE2eO9z+DO9xV2i9oWae3VHnjSLaGW8J1Lo2Dbaio4pGVkw+XswtCE2xf1L bL9EeEl8ivJ0JyV/U3iFDLY+0q1dtZJTuPWzLbCZAe6mgD5f3eOEoZEX8dInF4ceS8cD ukjbgT/yOmUjytN53CPGd2q0RKwbFFuHIkTGKYblGiyt8V6iDGXyaOmnRZu62EcXrgQq Ukzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hVH8+7CF; 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 kd10si15492094ejc.41.2021.03.17.01.58.22 for ; Wed, 17 Mar 2021 01:58:23 -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=hVH8+7CF; 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 S229877AbhCQI5x (ORCPT ); Wed, 17 Mar 2021 04:57:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229584AbhCQI5R (ORCPT ); Wed, 17 Mar 2021 04:57:17 -0400 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 EEA35C06174A for ; Wed, 17 Mar 2021 01:57:16 -0700 (PDT) Received: by mail-wm1-x32d.google.com with SMTP id b2-20020a7bc2420000b029010be1081172so825519wmj.1 for ; Wed, 17 Mar 2021 01:57:16 -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=6g1k4NOJoIyIgRaKDu88zZvT9OX+R02WPv1Cq13vbSs=; b=hVH8+7CFeF6siiczN9gEWSrkhgR3nF4LXv4BI4Ad0JT/kkz7DTW4CeTubJyFJ9q5bm aPSvCFSUWFNTxYdf4oWBZIYNZzMP9eOxCyDRsuOlDQ8A6sDUPFmg0zdVFyubcjCos8Jl UGi4zJyEX2/JHBUj18rdFIC5n1ATFa4PcS20X8R5swmyBHtrhU01Jw2D+d44uW7m2Odd M9nYUm7zYpGHg+3d6MX0Bc0XAXIsR0zP+D+wdKSfwatOWxuz93xyV/avQkstg1NY6um0 e4Qcl6wLJZJKxcM8TYP/Xk8ZTkrZ3cPCqHI+Ok1J4IUOgJda2dbYNmdX5+LBPM5Zx20x uKsA== 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=JHlEfvu1obOV5AO/ts57jmByzuxBRMPatgA0PxDKDLiLlfNIfk8evGN77nrKMfqlSt mrJ2cjHvkYGW1FMNo4r42PnZLI8rJsgRLTe9wWuMymt5oDgVkIT+v6YosO37HJ2R7OtW 5LvAnwCVdO2q0EW6Q4OAcTBRYK6S8K39q4JLYNBArQj4O9wSguWCW5N8o8jrS86fEIj9 yODEy+MH0rVZ8/LZaRs3Uh3XJZ3taMCmqxEYlXkVz+8yXzVjPPviN+o9J/bqhadLMuEW r4IqfwsDh1McK/EFHaQe35IUek69oEMWQJ0rJynblmxH8tk2FcYfGb3aOOqaP3LK25tm tN7A== X-Gm-Message-State: AOAM532jUlIhWDpE1l44ngluLqOF3WjNdCZEvyzGP0DX5THGUH+DQj7N qM5wyZevLKOqKJ/4ZATWd0Zs8Q== X-Received: by 2002:a05:600c:4f10:: with SMTP id l16mr2736082wmq.46.1615971435682; Wed, 17 Mar 2021 01:57:15 -0700 (PDT) Received: from dell.default ([91.110.221.194]) by smtp.gmail.com with ESMTPSA id j123sm1807243wmb.1.2021.03.17.01.57.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Mar 2021 01:57:15 -0700 (PDT) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Adam Radford , "James E.J. Bottomley" , "Martin K. Petersen" , Joel Jacobson , de Melo , Andre Hedrick , linux-scsi@vger.kernel.org Subject: [PATCH 10/18] scsi: 3w-xxxx: Remove 2 unused variables 'response_que_value' and 'tw_dev' Date: Wed, 17 Mar 2021 08:56:53 +0000 Message-Id: <20210317085701.2891231-11-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210317085701.2891231-1-lee.jones@linaro.org> References: <20210317085701.2891231-1-lee.jones@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org 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 Cc: "James E.J. Bottomley" Cc: "Martin K. Petersen" Cc: Joel Jacobson Cc: de Melo Cc: Andre Hedrick Cc: linux-scsi@vger.kernel.org Signed-off-by: Lee Jones --- drivers/scsi/3w-xxxx.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) -- 2.27.0 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;