linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Shevchenko, Andriy" <andriy.shevchenko@intel.com>
To: "laurent.meunier@st.com" <laurent.meunier@st.com>,
	"linus.walleij@linaro.org" <linus.walleij@linaro.org>
Cc: "linux-gpio@vger.kernel.org" <linux-gpio@vger.kernel.org>
Subject: Re: the needless loop?
Date: Wed, 28 Oct 2015 10:50:56 +0000	[thread overview]
Message-ID: <1446029456.6332.51.camel@intel.com> (raw)
In-Reply-To: <F2D8346926EE43489E99D3215078E1712DF3A1@SAFEX1NODE23.st.com>

On Wed, 2015-10-28 at 10:07 +0000, Laurent MEUNIER wrote:
> Hi Linus, Andriy,
> 
> > On Wed, Oct 21, 2015 at 6:45 PM, Shevchenko, Andriy
> > <andriy.shevchenko@intel.com> wrote:
> > 
> > > Catch such code in pinconf.c
> > > 
> > >          for (j = 0; j < map->data.configs.num_configs; j++) {
> > >                  if (!strcmp(map->data.configs.group_or_pin,
> > >                                  dbg->pin_name)) {
> > >                          /* We found the right pin / state */
> > >                          found = map;
> > >                          break;
> > >                  }
> > >          }
> > > 
> > > I do not get how the result of strcmp() would be different during
> > > the
> > > loop. Can you elaborate?
> > 
> > As you can see from git blame Laurent Meunier wrote this code,
> > (commit
> > f07512e615dd8) so let's ask him. I suspect a simple copy/paste
> > error?
> > Laurent?
> 
> Indeed obviously a copy / paste error I did 
> The loop shall be removed ... Has someone already any plan to send
> the fix ? 

Not me, too busy with other stuff (https://lkml.org/lkml/2015/10/27/451
)

> 
> Laurent
> 
> > Yours,
> > Linus Walleij

-- 
Andy Shevchenko <andriy.shevchenko@intel.com>
Intel Finland Oy
---------------------------------------------------------------------
Intel Finland Oy
Registered Address: PL 281, 00181 Helsinki 
Business Identity Code: 0357606 - 4 
Domiciled in Helsinki 

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

  reply	other threads:[~2015-10-28 10:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-21 16:45 the needless loop? Shevchenko, Andriy
2015-10-27 15:27 ` Linus Walleij
2015-10-28 10:07   ` Laurent MEUNIER
2015-10-28 10:50     ` Shevchenko, Andriy [this message]
2015-10-28 14:35       ` Laurent MEUNIER

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=1446029456.6332.51.camel@intel.com \
    --to=andriy.shevchenko@intel.com \
    --cc=laurent.meunier@st.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-gpio@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).