Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1544955ybh; Tue, 14 Jul 2020 00:10:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxD5x/lubE793VRuWCGH+4VQUpNC05Dr/vpnFVwFYsEBdlwovjvkDHoO4+CTHgMUmzMLxrN X-Received: by 2002:a17:906:82d2:: with SMTP id a18mr3184328ejy.522.1594710606817; Tue, 14 Jul 2020 00:10:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594710606; cv=none; d=google.com; s=arc-20160816; b=rijN5/6rKlkmAnhj+PykC/wX4+n5lTA9nnAGTz9GC18KZVkkJdg9hFLJzLJ2CYHKSN eBq0rNlSaDdZSTBXMk5IKJReSp9rjrsxfrB4H1iaf+jEft9WJrjXqXwKeVAAIsy6kP+m KIhv8wcp7M0wG4U6+wDkY7FvkXEdd7FQ6Mp4gfrI3Zv/AsmwHHb38OR+kMQKGoXuhB+d lkZL7h3yBry+pBtsaHsUwqEM1ekCp4z14BQCeLuUjcj1o8AXkUb/BOHHnxBS5iUAyipa LeUalE2VLlNmvGT9DUpfNbzIQNkT+ZB2CpiXJsWRAt/9SwBrntrTNXOuMRWtJuV4JLCK KVFg== 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=wQhoO7RZsrQbrq/njhNz0I86P8CXnyO+7aU8sOYPUxk=; b=WJoeQqsgmdqSBxBFb/NZsZBBn1HY8DMSQDfFGlaa8wf3oWqKEBcihFtNGAovRFVzKE AfUBOI7sOFPpUCf/+s1mi8uIQW63laqr6rJg9upcmlzVbz/zgnyXMutSgZ3omiSNnffV 8hcXtKDzJp37/y25eKrYdk131FdHnhV6ln9kHl68rm0sZ1pQixT8729ouZ6Pp9/Tkfa+ eMjpEdAwijIE9zJvHo1uAMy9i6f/gSMX9uMxS2CLjP6AXRVHskh3tGHaXouMV/5K9V17 XE50X3HDktCZIAtYJi2mBn6OP0YP27IoIN8njNQJ1XCUspURVpIXVfGSHVo9Sxp+Nrfj +7Yg== 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 v13si10372463ejw.696.2020.07.14.00.09.44; Tue, 14 Jul 2020 00:10:06 -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 S1726832AbgGNHHn (ORCPT + 99 others); Tue, 14 Jul 2020 03:07:43 -0400 Received: from mx2.suse.de ([195.135.220.15]:42586 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725925AbgGNHHn (ORCPT ); Tue, 14 Jul 2020 03:07:43 -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 9B451B145; Tue, 14 Jul 2020 07:07:43 +0000 (UTC) Subject: Re: [PATCH v2 20/29] scsi: aic7xxx: aic7xxx_osm: Remove unused variable 'targ' 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-21-lee.jones@linaro.org> From: Hannes Reinecke Message-ID: <2c38b2b2-d6b4-8a3e-3dd5-8bd511d8396a@suse.de> Date: Tue, 14 Jul 2020 09:07:38 +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-21-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 like checking the 'targ' was removed in 2005. > > Fixes the following W=1 kernel build warning(s): > > drivers/scsi/aic7xxx/aic7xxx_osm.c: In function ‘ahc_send_async’: > drivers/scsi/aic7xxx/aic7xxx_osm.c:1604:28: warning: variable ‘targ’ set but not used [-Wunused-but-set-variable] > 1604 | struct ahc_linux_target *targ; > | ^~~~ > > Cc: Hannes Reinecke > Cc: "Daniel M. Eischen" > Cc: Doug Ledford > Signed-off-by: Lee Jones > --- > drivers/scsi/aic7xxx/aic7xxx_osm.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/scsi/aic7xxx/aic7xxx_osm.c b/drivers/scsi/aic7xxx/aic7xxx_osm.c > index cc4c7b1781466..ed437c16de881 100644 > --- a/drivers/scsi/aic7xxx/aic7xxx_osm.c > +++ b/drivers/scsi/aic7xxx/aic7xxx_osm.c > @@ -1592,7 +1592,6 @@ ahc_send_async(struct ahc_softc *ahc, char channel, > case AC_TRANSFER_NEG: > { > struct scsi_target *starget; > - struct ahc_linux_target *targ; > struct ahc_initiator_tinfo *tinfo; > struct ahc_tmode_tstate *tstate; > int target_offset; > @@ -1626,7 +1625,6 @@ ahc_send_async(struct ahc_softc *ahc, char channel, > starget = ahc->platform_data->starget[target_offset]; > if (starget == NULL) > break; > - targ = scsi_transport_target_data(starget); > > target_ppr_options = > (spi_dt(starget) ? MSG_EXT_PPR_DT_REQ : 0) > 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