From patchwork Mon Jul 13 08:00:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 235344 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp2617246ilg; Mon, 13 Jul 2020 01:00:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzGD3aMLt0R+WotMGSEQKK2bicgWso/EJ/xSHHcIs0gkW2hiWYVbab80WlAnAO2Ov2bOYyv X-Received: by 2002:a17:906:a156:: with SMTP id bu22mr70670579ejb.322.1594627253113; Mon, 13 Jul 2020 01:00:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594627253; cv=none; d=google.com; s=arc-20160816; b=DsCMbAFH4wPMK5b8NpU0pHnC6U7wHPtzvALHGfr3xsimQzvOt9Ke8398bC/KdOPrJb P6g8KXuDm6duwXqRrLtrFYTupTh9Jy6hipP8SElMFxJ0u1YlgqOK6sZdi+sRg16927Id iVfjmVQX58T1GBp/zNkb1GMw+AsPBy+R10uY+SnXwmICtt2WzvkiC0O7l+xpOx8IzYyo fm3gsi2u/MmRWnmhGv1qIwqoZ5UAFBPaDoM4nRCcwT3kxMZDL9D441zp1TVj9Trk54kT 9dnRsVWbx9tPDApl3YcPlZwYak3eDIcZhRXVCIErCaoqhlgscvptTxAC2+N0o4t7EDdc rPvA== 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=fObO+NKzZNjEK6DSZvXqA6TGAzJL4t9qXWkp6FNxmnE=; b=lxZjmIniEcGePK/Hiugdyxm4jSlO/7iSrv26SQUS1krsg5HzoYG5+IDgCEOkMaS7xB uUQ2V65GptMDAKuGUm8Q50s1nSvnEWIn1Og3Z5blwkZiQ/VLFifjbwkV22RRY8kACbgJ KRJrbheXwS5t0P7FAOuMf5CkAFX+Pp/QIoHikiQjyI2tvwWjlEOoqF3gUPIGctI2K2AW XswF5ctOgNR5vjN1gfHREttN/KzDHVPPY63Hdz9RQwcNHm8lhicftvYqPfqPmldzZyVw Atb4cv/Hgn9+/HyUlnUHxWvyY5TRX2NbI/LiKbSlYdYFqTt8wxOcZ+efwDARDS2p3dbP Zf2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=N2Mzc5cK; 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 me11si8649646ejb.458.2020.07.13.01.00.52 for ; Mon, 13 Jul 2020 01:00:53 -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=N2Mzc5cK; 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 S1729492AbgGMIAt (ORCPT ); Mon, 13 Jul 2020 04:00:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729418AbgGMIAg (ORCPT ); Mon, 13 Jul 2020 04:00:36 -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 64C46C061794 for ; Mon, 13 Jul 2020 01:00:36 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id s10so14703774wrw.12 for ; Mon, 13 Jul 2020 01:00:36 -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=fObO+NKzZNjEK6DSZvXqA6TGAzJL4t9qXWkp6FNxmnE=; b=N2Mzc5cK/DpyZPqIlBKHUbHldktqieYQnYpoJngPtM+DhVjf8sbqzJy2zlwdIK1ucB bqXpqOZfH4eMO1zu2uNcjxXrvg6xQ/giuVGXDWkUxiloujAPRT/l/hElQBpweVZghVMi aJI/Q17SLycxCSjE+ycakn0d+aLLUSym+f4DFq1vcyFWkxvgmluIMBLDAoQwyj2Umi7K IlYZHqAdD7cMyUSWElO7iVNBvG5nSzaq23ohZ/IFdFxpy0ebE/3OLbY+pp8fR02CtSt0 keZIuZCGbFCJirxx0QSvWia7iqxhDxgEFO3OcxvbhdzAXy3+gfOBlPLnsgLDuMCnui1y oWCw== 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=fObO+NKzZNjEK6DSZvXqA6TGAzJL4t9qXWkp6FNxmnE=; b=sPbiGTaZdJfKV+3TxDJ4Xfh7OAv5MwETd8VQrkhErMhauo/YVhNqzIaMBMmuYGE5wG Hs6riOKWBkFuCxdBSlOQeUxQjkHQ08x95eTFCrCBUK+VXaaF0YkEcN+qc7pSQTSiRcyj BSX0Et2TNcvLNBbZpsvKSU/LgJMgH8U+fwdudT1yeyxJbj58Y1AnsmogPvaOeDlN5y29 cAKSKSaN7uB89H8mU3jUXDsu8R5HaKkg2SpbKpvLYMKKKTLQUP73boHvPgVOFMpLp+7U cV3kUTOo9DJrINsA25o0Zils/ElqevCmVxxhEe1f0WTjRDXxjNqlJk2UEjU5miylRw+B ff5g== X-Gm-Message-State: AOAM530xiZi6t0U9VSt/ObftjZAv04oZhB3nqHxgsUse2STJJfOJlV22 t882QxRDwsdgtkhy7qjo8+hg/A== X-Received: by 2002:a5d:538e:: with SMTP id d14mr78591987wrv.21.1594627235183; Mon, 13 Jul 2020 01:00:35 -0700 (PDT) Received: from localhost.localdomain ([2.31.163.6]) by smtp.gmail.com with ESMTPSA id 33sm24383549wri.16.2020.07.13.01.00.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jul 2020 01:00:34 -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 24/24] scsi: aic7xxx: aic79xx_osm: Remove set but unused variabes 'saved_scsiid' and 'saved_modes' Date: Mon, 13 Jul 2020 09:00:01 +0100 Message-Id: <20200713080001.128044-25-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 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Haven't been used since 2006. Fixes the following W=1 kernel build warning(s): drivers/scsi/aic7xxx/aic79xx_osm.c: In function ‘ahd_linux_queue_abort_cmd’: drivers/scsi/aic7xxx/aic79xx_osm.c:2155:17: warning: variable ‘saved_modes’ set but not used [-Wunused-but-set-variable] drivers/scsi/aic7xxx/aic79xx_osm.c:2148:9: warning: variable ‘saved_scsiid’ set but not used [-Wunused-but-set-variable] Cc: Hannes Reinecke Signed-off-by: Lee Jones --- drivers/scsi/aic7xxx/aic79xx_osm.c | 4 ---- 1 file changed, 4 deletions(-) -- 2.25.1 Reviewed-by: Hannes Reinecke diff --git a/drivers/scsi/aic7xxx/aic79xx_osm.c b/drivers/scsi/aic7xxx/aic79xx_osm.c index 3782a20d58885..140c4e74ddd7e 100644 --- a/drivers/scsi/aic7xxx/aic79xx_osm.c +++ b/drivers/scsi/aic7xxx/aic79xx_osm.c @@ -2141,14 +2141,12 @@ ahd_linux_queue_abort_cmd(struct scsi_cmnd *cmd) u_int saved_scbptr; u_int active_scbptr; u_int last_phase; - u_int saved_scsiid; u_int cdb_byte; int retval; int was_paused; int paused; int wait; int disconnected; - ahd_mode_state saved_modes; unsigned long flags; pending_scb = NULL; @@ -2239,7 +2237,6 @@ ahd_linux_queue_abort_cmd(struct scsi_cmnd *cmd) goto done; } - saved_modes = ahd_save_modes(ahd); ahd_set_modes(ahd, AHD_MODE_SCSI, AHD_MODE_SCSI); last_phase = ahd_inb(ahd, LASTPHASE); saved_scbptr = ahd_get_scbptr(ahd); @@ -2257,7 +2254,6 @@ ahd_linux_queue_abort_cmd(struct scsi_cmnd *cmd) * passed in command. That command is currently active on the * bus or is in the disconnected state. */ - saved_scsiid = ahd_inb(ahd, SAVED_SCSIID); if (last_phase != P_BUSFREE && SCB_GET_TAG(pending_scb) == active_scbptr) {