From patchwork Wed Jul 8 12:02:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 235072 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp369888ilg; Wed, 8 Jul 2020 05:03:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHOPCQhFkcJj0Ykk+Vj6NXd7d4M5W27MMBaNFqkqb3dJJyDI1uGbT/94qh4AdGpDO7Wpry X-Received: by 2002:a17:906:a449:: with SMTP id cb9mr31498495ejb.115.1594209779906; Wed, 08 Jul 2020 05:02:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594209779; cv=none; d=google.com; s=arc-20160816; b=xL1ENmskWlNRhJDWrtp8ok4tVatw1yyByBG1hgFJaUsl8/sTUzgd+rNnihKFAtUuRG p1XaOGfSvIZE+doa9b6SXxvVqw6K6SYu1H3S2NASPIiJTj3+eaT7dGw3FniJd1uNXmNT PRRfTr0DcNYwRoKyJ0NCT6W57lFVZHWPkgMadSw+eBAyM/wG2kAmv6IVxDVUzZXOAq19 uR/KhHutGHSyWfB0OkfqrTiqIhbE4EmY9PrD4lvRa9rQr1hmUVSU2IS81+8ILcFmL+jZ O67zyZ4wDabL7J29T+ALQEFuOvh8gmXex2kgs2jzAXS0862x93FmPXLQPonx/VbBS+Rn SxUg== 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=Sy/K8f8HsXXHV/Uh8PtUz+jEUwEZnfQCudyYCgnVPrY=; b=iO30tMOkukbdsenslYwWK07TgP/G0wNpkncGnKA1TzSxqlKp4VpXdkJvnlvR323/TM KVM+HG+YmwXh76owyRG6lQifo9zD6FQ7W8ZihZvcKqEO3pDzCcFlZe2EWPUq+8JEiqLi OC9G/Uqql1PdEzVdHdTxVc0pWJL+gGC6/8Z0mi9Y7qBFVDJ4GTfSLofqCYdYHhAP4ATy s1C6lI0+j5NAENVKWYr2KJwybIVcOMNSF455d6vVPC7Dvr+iVDYYtMRGwXwxq8w2JfMi MOknBaw16zuQA13p25PaZERwRlCw0oVUGKPjB5F4wMEbe1NDewj5ByRwaiexyfGhiK1f Gn4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UVVJVhkk; 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 r22si17696576edq.411.2020.07.08.05.02.59 for ; Wed, 08 Jul 2020 05:02:59 -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=UVVJVhkk; 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 S1729164AbgGHMC6 (ORCPT ); Wed, 8 Jul 2020 08:02:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729088AbgGHMC4 (ORCPT ); Wed, 8 Jul 2020 08:02:56 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5FF5C08E6DC for ; Wed, 8 Jul 2020 05:02:55 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id q5so48642101wru.6 for ; Wed, 08 Jul 2020 05:02:55 -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=Sy/K8f8HsXXHV/Uh8PtUz+jEUwEZnfQCudyYCgnVPrY=; b=UVVJVhkkvXU5mQaYO7/e6LDc6Bn+WyCrxwonvgA5bXcIDKlvL9UZyftgtkF/mFygO9 Y92+vMSrt60fiM8wodrySHgosdmXqwjvaG1WzE9xIhuct+M/8L+96nZZbbCOnULeiPeN ZTVXO+EZChxwre/ooWZwMBRtGz/N4IHmc4b4dzDo4XBqs5IZVDEKI/RWuz/xu4Y/nxll oEOYdjvrgnEqGvYKb2wvkiCLmtuI4POA5MgvjqNTPNlGUFedPELjVCNPRZUakEPFg46j idt6O3eIE1ZjoTHSb6RgXUs5GAOkd/qW1jc7JHesY4MaWWwu08UKU8pn5Lj+Y/aThEDi CgaQ== 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=Sy/K8f8HsXXHV/Uh8PtUz+jEUwEZnfQCudyYCgnVPrY=; b=gTPpeeYTsuj8lRjp6D2akJmcjGPNhaJfCq7sAW/jE7Xwm9JEAwK6/o8Xf8ZHPVUzPG lhP55OXPiMt4Nzl+NqfE01tHujj3txC4JFnH8Og6AklqLSNzRm3Wp8Ql8gG53d+qhwTa nOcpBqxPSymnc9jBWf+/7EEGTpT1O9kDjy8XhYhOw+oYTz1B0nl/vyXpQ1qH1WXUo2w+ ZvJL1sAPxcWr+RJ53cgAldNmslBALK0f8olIlP76CMfwObqgpbF+blc7pOgeR/AjAmAP 3naCqVzGtnoAj9gEDAZ6WZ03E8xlfI96oprjEM88y5Snd0jU2oPsmyM1fHLu0LvjokmG 1CgQ== X-Gm-Message-State: AOAM530+e0BZZruNV078cwjpyat/6Ebyz60lWO6RUQMYy3qyY8flXA7z 6ckdQuTS/uSIItKaG61u5ebHwQ== X-Received: by 2002:adf:efc9:: with SMTP id i9mr61722445wrp.77.1594209774488; Wed, 08 Jul 2020 05:02:54 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id m62sm3964997wmm.42.2020.07.08.05.02.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jul 2020 05:02:53 -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 , "Daniel M. Eischen" , Doug Ledford Subject: [PATCH 20/30] scsi: aic7xxx: aic7xxx_osm: Remove unused variable 'ahc' Date: Wed, 8 Jul 2020 13:02:11 +0100 Message-Id: <20200708120221.3386672-21-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200708120221.3386672-1-lee.jones@linaro.org> References: <20200708120221.3386672-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 Looks as though 'ahc' hasn't been used since 2005. Fixes the following W=1 kernel build warning(s): drivers/scsi/aic7xxx/aic7xxx_osm.c: In function ‘ahc_linux_slave_configure’: drivers/scsi/aic7xxx/aic7xxx_osm.c:674:20: warning: variable ‘ahc’ set but not used [-Wunused-but-set-variable] 674 | struct ahc_softc *ahc; | ^~~ Cc: Hannes Reinecke Cc: "Daniel M. Eischen" Cc: Doug Ledford Signed-off-by: Lee Jones --- drivers/scsi/aic7xxx/aic7xxx_osm.c | 4 ---- 1 file changed, 4 deletions(-) -- 2.25.1 diff --git a/drivers/scsi/aic7xxx/aic7xxx_osm.c b/drivers/scsi/aic7xxx/aic7xxx_osm.c index 32bfe20d79cc1..cc4c7b1781466 100644 --- a/drivers/scsi/aic7xxx/aic7xxx_osm.c +++ b/drivers/scsi/aic7xxx/aic7xxx_osm.c @@ -666,10 +666,6 @@ ahc_linux_slave_alloc(struct scsi_device *sdev) static int ahc_linux_slave_configure(struct scsi_device *sdev) { - struct ahc_softc *ahc; - - ahc = *((struct ahc_softc **)sdev->host->hostdata); - if (bootverbose) sdev_printk(KERN_INFO, sdev, "Slave Configure\n");