public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
From: Doug Ledford <dledford@redhat.com>
To: "Marciniszyn, Mike" <mike.marciniszyn@intel.com>,
	Joe Perches <joe@perches.com>,
	Colin King <colin.king@canonical.com>,
	"Hefty, Sean" <sean.hefty@intel.com>,
	Hal Rosenstock <hal.rosenstock@gmail.com>,
	"linux-rdma@vger.kernel.org" <linux-rdma@vger.kernel.org>
Cc: "kernel-janitors@vger.kernel.org"
	<kernel-janitors@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"Dalessandro, Dennis" <dennis.dalessandro@intel.com>
Subject: Re: [PATCH] IB/qib: remove redundant setting of any in for-loop
Date: Mon, 13 Nov 2017 16:52:58 -0500	[thread overview]
Message-ID: <1510609978.3735.43.camel@redhat.com> (raw)
In-Reply-To: <32E1700B9017364D9B60AED9960492BC626823A0@fmsmsx120.amr.corp.intel.com>

[-- Attachment #1: Type: text/plain, Size: 1011 bytes --]

On Fri, 2017-11-10 at 19:07 +0000, Marciniszyn, Mike wrote:
> > > On Fri, 2017-10-20 at 09:21 +0200, Colin King wrote:
> > > > From: Colin Ian King <colin.king@canonical.com>
> > > > 
> > > > The variable all is being set but is never read after this
> > > > hence it can be removed from the for loop initialization.
> > > > Cleans up clang warning:
> > > 
> > > any is really used as bool and is initialized at function
> > > entry.  The earlier loop also reinitializes any unnecessarily.
> > 
> > Denny, can you weigh in on what you want in this thread?  Thanks.
> > 
> 
> I am ok with both Colin's and Joe's patch.
> 
> Joe's patch would require additional testing vs. the trivial warning fix.
> 
> Then there is a "guideline"  to keep fixes separate from clean up...
> 
> Doug,  do you want a tested patch from me?

Preferably, yes :-)

-- 
Doug Ledford <dledford@redhat.com>
    GPG KeyID: B826A3330E572FDD
    Key fingerprint = AE6B 1BDA 122B 23B4 265B  1274 B826 A333 0E57 2FDD

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2017-11-13 21:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-20  7:21 [PATCH] IB/qib: remove redundant setting of any in for-loop Colin King
     [not found] ` <20171020072103.10337-1-colin.king-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
2017-10-20  7:35   ` Joe Perches
2017-11-10 18:00     ` Doug Ledford
2017-11-10 19:07       ` Marciniszyn, Mike
2017-11-13 21:52         ` Doug Ledford [this message]
2017-11-14 21:40           ` Marciniszyn, Mike

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1510609978.3735.43.camel@redhat.com \
    --to=dledford@redhat.com \
    --cc=colin.king@canonical.com \
    --cc=dennis.dalessandro@intel.com \
    --cc=hal.rosenstock@gmail.com \
    --cc=joe@perches.com \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=mike.marciniszyn@intel.com \
    --cc=sean.hefty@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox