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: 11659049 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 22F12618 for ; Mon, 13 Jul 2020 08:00:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0A54920758 for ; Mon, 13 Jul 2020 08:00:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="N2Mzc5cK" 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-Google-Smtp-Source: ABdhPJwW3t5xWfFm2/Dwj6Tum4pGcl/MITFPEo8AKRohUzEqg85jlPwfdAKgGB8gAtcC46Qzvb9Wlg== 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 Reviewed-by: Hannes Reinecke --- drivers/scsi/aic7xxx/aic79xx_osm.c | 4 ---- 1 file changed, 4 deletions(-) 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) {