Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934609AbbEORMl (ORCPT ); Fri, 15 May 2015 13:12:41 -0400 Received: from smtp-outbound-2.vmware.com ([208.91.2.13]:52248 "EHLO smtp-outbound-2.vmware.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932810AbbEORMh (ORCPT ); Fri, 15 May 2015 13:12:37 -0400 From: Prasad Gondi To: "vasu.dev@linux.intel.com" , Nicholas Mc Guire CC: "linux-scsi@vger.kernel.org" , "James E.J. Bottomley" , "linux-kernel@vger.kernel.org" , Nicholas Mc Guire , "fcoe-devel@open-fcoe.org" Subject: RE: [Open-FCoE] [PATCH] scsi: fix Wunused-but-set-variable buildwarning Thread-Topic: [Open-FCoE] [PATCH] scsi: fix Wunused-but-set-variable buildwarning Thread-Index: AQHQjzH1/S6hDedZsEy0hJIZd8VTe519RZ4w Date: Fri, 15 May 2015 17:12:23 +0000 Message-ID: <932e7755544949139f0d283358499bb8@EX13-MBX-026.vmware.com> References: <1431627166-12729-1-git-send-email-hofrat@osadl.org> <1488e7d0337944d98996c115cd0baefc@EX13-MBX-026.vmware.com> <20150515071415.GC24293@opentech.at> <1431709773.4358.14.camel@lin-nd1-054.jf.intel.com> In-Reply-To: <1431709773.4358.14.camel@lin-nd1-054.jf.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.113.160.246] Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by nfs id t4FHCk3V011538 Content-Length: 1927 Lines: 45 Thanks Vasu for the details. I agree current patch is good to go. I have no objections and it is an extension to the older patch which removed the " fsp->tgt_flags" flags. Thanks, Prasad -----Original Message----- From: vasu.dev@linux.intel.com [mailto:vasu.dev@linux.intel.com] Sent: Friday, May 15, 2015 10:10 AM To: Nicholas Mc Guire Cc: Prasad Gondi; linux-scsi@vger.kernel.org; James E.J. Bottomley; linux-kernel@vger.kernel.org; Nicholas Mc Guire; fcoe-devel@open-fcoe.org Subject: Re: [Open-FCoE] [PATCH] scsi: fix Wunused-but-set-variable buildwarning On Fri, 2015-05-15 at 09:14 +0200, Nicholas Mc Guire wrote: > On Thu, 14 May 2015, Prasad Gondi wrote: > > > It seems like rpriv is used to set the fsp->tgt_flags originally > > > > > fsp->tgt_flags = rpriv->flags > > > > And fsp->tgt_flags are used in "fc_fcp_cmd_send" like this > > > > setup_timer(&fsp->timer, fc_fcp_timeout, (unsigned long)fsp); > > if (rpriv->flags & FC_RP_FLAGS_REC_SUPPORTED) > > fc_fcp_timer_set(fsp, get_fsp_rec_tov(fsp)); > > > > Main purpose of this flags used is to set the correct TimeOut Value for fc_fcp_timer. > > > > So is the removal of the "fsp->tgt_flags = rpriv->flags" in fc_queuecommand() is intentional? Or by mistake? > > > thats something I can't say - but the commit message indicated that > the removal of tgt_flags was intentional. > It was intentional and good cleanup since now rpriv->flags is used directly with that change instead of storing in fsp->tgt_flags as it was before. > > Once we clear that out we can see whether this change make sense? > > Anycase the patch under discussion is straight forward clean up patch since it just removes a local stack variable which is not used. Thanks, Vasu ????{.n?+???????+%?????ݶ??w??{.n?+????{??G?????{ay?ʇڙ?,j??f???h?????????z_??(?階?ݢj"???m??????G????????????&???~???iO???z??v?^?m???? ????????I?