Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp793434ybh; Mon, 13 Jul 2020 01:01:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMOmlyJeW/tLohrjLsecKKLt1pUOakilnHkCbCr/bjvgr6lTAUVWZHApx7hP15qBvbYCMt X-Received: by 2002:a05:6402:1655:: with SMTP id s21mr87256424edx.289.1594627296785; Mon, 13 Jul 2020 01:01:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594627296; cv=none; d=google.com; s=arc-20160816; b=cMrMwQiSg3HmcuWn0g9NwCRJRREju+YFkTN93pcn3ELro7WQj/lkCjxkQi2MFh/jNb 2xKEtxkgVfhScYt4QIOneDNeJo8D92Pwg62+5/RnBt80xut1WtJNjP+RbV/NHbuItUB7 L5xolW1su/Y6twXB2dl9KPJRHDl1Klu9xAoL9P0byN1sGyzGTZGnQKgEg0Jl757Qy9m4 N9cKbETsDQA3yPE/Fi7KkkBNlyKaYp4g9THpjquB4RlTrssVnGtS5ImgGvp+l4NPYsrD e0by9yvQBBsVIMNebzBm+OLWriXu2o+JDHleKH8oSQQx4S/A0ycfYlB/GkH62jHvz62I sxUQ== 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=npmbMmGwXmpaLu61Oedwmcs3qT0N7Ml8rtlLxMj9sy4=; b=kErxpnjZTpx/9zFCuYLm8NjJe4hyP1cW+8ByiXHl4JiLucMWQDbUGhalfkXjVp4guK CCQFKckwKIjVb8kD3TQwHTOWdwXu7oucS21ifF3Tw4vsPWLsbWzpoyP+UV9tcq/hEon2 3bbkM/bYMFsG93yChPcguiMPRwxeA3ucHvnhDV3Q7SzDEi3aqTbnFQM8j2vmIee/vK6S 4z5wNJ7Slj/6gQNBakXWVN4aPiaFPde2WtJSZiQ1p6Y/AW122rV2kAJbFaVUU5ezZbfe XhG99+2EIxU7RySrhkVHbhJ3WQA37MYk1PbsO5ozj8ZM5RB3N6KEBQ89Ra3pPODKVC/S uApA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=APX1w6TO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 s27si8364848ejd.181.2020.07.13.01.01.13; Mon, 13 Jul 2020 01:01:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=APX1w6TO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S1729477AbgGMIAk (ORCPT + 99 others); Mon, 13 Jul 2020 04:00:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729409AbgGMIAe (ORCPT ); Mon, 13 Jul 2020 04:00:34 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55F48C08C5E1 for ; Mon, 13 Jul 2020 01:00:33 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id k6so14749948wrn.3 for ; Mon, 13 Jul 2020 01:00: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=npmbMmGwXmpaLu61Oedwmcs3qT0N7Ml8rtlLxMj9sy4=; b=APX1w6TO5R4QsdjlBqeQiqIQhMT/DzJAbNzzDPLQgY8v+ka1s0CEwFP+HC5FjiVKPa aIydkPNZ8PXZcGLx3vaXRayTMs8CFEB9A1S4lqCDeHMnxin9INC9o3R4TLNSrH/ceis8 2+X5uw1wy8l+NxIzzrfL5RuQdmMBtC7L4P8Zz+58YamuEQ/tXKHA88LW0Tr6b6Q5NCZD Z9kKUUWYXJ1N42K6IblfFKi41V3gE2Aiaj+2QF24pxlPm1E1fxflXd7fVI3EuVjt3rfr Oj90KpV6xoB4pL3WZDOer2uQ2UL2fIQONBkMpqrCKEmTAtGnhnFuwgpOdliiZVmNei4I JrdA== 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=npmbMmGwXmpaLu61Oedwmcs3qT0N7Ml8rtlLxMj9sy4=; b=j1mOnfduXQUpBfG+pDH25JrDP5lvewuwZ9bRGONLEz2G7gA74WmYvcLM23esMP+be6 I0DK6nGz+ERKv7tJ1AWifppgi4ZN4ml8bL3NX4cmFDNB1URfmdQpFE7OKxPDN/F0sLnl UuafqPTE9mfvCZa9i6NQWn73AE3m0FQgclIxz4qn/SPTU8AEeoPXoFaIKiam0J4NtDJh +Q4ds7Ye7SeJE753PO121oKnpMpwBeTkzytS1mKh3BO5x22bPgDXVPpU/8Pe+xm6cbXg uEpC2R02LQJYvKO6e9tunTyYGZlno0oPRaOyz70R8FWdf7QsTkG4htc+3X0m3ug0bwVz mg1g== X-Gm-Message-State: AOAM5328yafprNUl9hv7dBCNja/esu3GUTtbOFpnRkKp7gAWyWoCgWUW yejLsuqj2P5vjgWkDt01to0jpw== X-Received: by 2002:adf:dd4a:: with SMTP id u10mr77435205wrm.169.1594627232116; Mon, 13 Jul 2020 01:00:32 -0700 (PDT) Received: from localhost.localdomain ([2.31.163.6]) by smtp.gmail.com with ESMTPSA id 33sm24383549wri.16.2020.07.13.01.00.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jul 2020 01:00: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 , Hannes Reinecke Subject: [PATCH v2 22/24] scsi: aic7xxx: aic79xx_osm: Remove unused variables 'wait' and 'paused' Date: Mon, 13 Jul 2020 08:59:59 +0100 Message-Id: <20200713080001.128044-23-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200713080001.128044-1-lee.jones@linaro.org> References: <20200713080001.128044-1-lee.jones@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It looks like they have never actually been used. Fixes the following W=1 kernel build warning(s): drivers/scsi/aic7xxx/aic79xx_osm.c: In function ‘ahd_linux_dev_reset’: drivers/scsi/aic7xxx/aic79xx_osm.c:782:9: warning: variable ‘wait’ set but not used [-Wunused-but-set-variable] drivers/scsi/aic7xxx/aic79xx_osm.c:781:9: warning: variable ‘paused’ set but not used [-Wunused-but-set-variable] Cc: Hannes Reinecke Signed-off-by: Lee Jones --- drivers/scsi/aic7xxx/aic79xx_osm.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/scsi/aic7xxx/aic79xx_osm.c b/drivers/scsi/aic7xxx/aic79xx_osm.c index 9235b6283c0b3..8e43ff86e0a60 100644 --- a/drivers/scsi/aic7xxx/aic79xx_osm.c +++ b/drivers/scsi/aic7xxx/aic79xx_osm.c @@ -775,16 +775,13 @@ ahd_linux_dev_reset(struct scsi_cmnd *cmd) struct scb *reset_scb; u_int cdb_byte; int retval = SUCCESS; - int paused; - int wait; struct ahd_initiator_tinfo *tinfo; struct ahd_tmode_tstate *tstate; unsigned long flags; DECLARE_COMPLETION_ONSTACK(done); reset_scb = NULL; - paused = FALSE; - wait = FALSE; + ahd = *(struct ahd_softc **)cmd->device->host->hostdata; scmd_printk(KERN_INFO, cmd, -- 2.25.1