Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1544783ybh; Tue, 14 Jul 2020 00:09:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwU9CFf3o4yzZMH8Ib+ZQ/Mz2xPJYKPAIKyQwQdNq+14tc3Xd0QepzchWQxMMUW4AVjSKpq X-Received: by 2002:a17:906:140e:: with SMTP id p14mr3252904ejc.430.1594710582650; Tue, 14 Jul 2020 00:09:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594710582; cv=none; d=google.com; s=arc-20160816; b=JG6K+6a5YmviYKAWVSL3Yo0itmzFpT1na1pJr5OEJGvf24jzIakFgce+wNnzsGtrC7 bAhmsoJoMB11ezORcKRN8oet/Tur/BXSk8Ct3v4oZpjT0Y36QybntCZDn2Mh2BJLforE vmtUdsDP1i7KIl7D35HLQSKafu5oLt0UJDzL1YIXpAx2imE1Mwr7D52pi6shjFdlbn9b 8v5S64C8jMsyZMt4EwYPpTtVrwZWRwBLLawupSJB0buA11elwWfqVzU0/9F1SXrT5Q3S yUiBHUwcMMXFWrKl3KTPLKDCCeRWAoBPaO1V4+2kc2WO43rLWKx2C1LZC8lqt5TBWEwJ S/tw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=DIxkyZ4RHT5b8IYNyfVlh0fzinbwuqnQLjl79uFu28o=; b=XlnZqfC/MtWU493z8sFGx8Bp5kbdL2xg4dAy34HH48u0/hNYyrE06BJxdvqRt0XKo5 WrUSbvtSj5B7iLyqNfGXENFWWpNIHVSNtsTyGcsfvDW4ztKA6q7dAe7XRr61Hn9mU2Gv wqHDJ8JAwuKCvhcH1WzPkwdlXupkwvm2df0c+HNWjkhyLmSsD8lC6wS8HvIIwoS6wgdE F/ZnfYd/ztn+J0Tnx4q+8P8hGNeEZRpKogP6fwe6pmoXGHH02IVAYzBnGS+8FGlFndg7 rf8thlv4PZIq3JjdzWIeC8+kvL/V04xHMXtVROaYwJ/Gs3PlaMyaXWcfH0+r0ISiigDC QX8Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ni2si10244244ejb.480.2020.07.14.00.09.19; Tue, 14 Jul 2020 00:09:42 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726908AbgGNHHN (ORCPT + 99 others); Tue, 14 Jul 2020 03:07:13 -0400 Received: from mx2.suse.de ([195.135.220.15]:42424 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725778AbgGNHHM (ORCPT ); Tue, 14 Jul 2020 03:07:12 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 97216AD1E; Tue, 14 Jul 2020 07:07:13 +0000 (UTC) Subject: Re: [PATCH v2 19/29] scsi: aic7xxx: aic7xxx_osm: Remove unused variable 'ahc' To: Lee Jones , jejb@linux.ibm.com, martin.petersen@oracle.com Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, Hannes Reinecke , "Daniel M. Eischen" , Doug Ledford References: <20200713074645.126138-1-lee.jones@linaro.org> <20200713074645.126138-20-lee.jones@linaro.org> From: Hannes Reinecke Message-ID: <94cecb13-2df9-9ee8-0341-9d0165f831d4@suse.de> Date: Tue, 14 Jul 2020 09:07:09 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <20200713074645.126138-20-lee.jones@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/13/20 9:46 AM, Lee Jones wrote: > 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(-) > > 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"); > > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke Teamlead Storage & Networking hare@suse.de +49 911 74053 688 SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer