Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1298442

Re: [PATCH v2] gpiolib: fix warning about iterator

From Linus Walleij <linus.walleij@linaro.org>
Newsgroups linux.kernel
Subject Re: [PATCH v2] gpiolib: fix warning about iterator
Date 2015-12-28 03:50 +0100
Message-ID <qKw33-3Io-453@gated-at.bofh.it> (permalink)
References <qK4Jc-6fM-3@gated-at.bofh.it> <qKjIe-7Ca-23@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sun, Dec 27, 2015 at 2:36 PM, Sudip Mukherjee
<sudipm.mukherjee@gmail.com> wrote:

> We were getting build warning about "iterator" being used uninitialized.
> Use iterator properly to fix the build warning and in the process remove
> the variable "pos" which is not required now.
>
> Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
> ---
>
> v1: at the end of the loop iterator will point to head and we are trying
> to check its field.

OK took the v1 out and applied this version instead.

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[PATCH] gpiolib: fix warning about iterator Sudip Mukherjee <sudipm.mukherjee@gmail.com> - 2015-12-26 09:00 +0100
  Re: [PATCH] gpiolib: fix warning about iterator Linus Walleij <linus.walleij@linaro.org> - 2015-12-26 22:40 +0100
    Re: [PATCH] gpiolib: fix warning about iterator Sudip Mukherjee <sudipm.mukherjee@gmail.com> - 2015-12-27 14:40 +0100
    [PATCH v2] gpiolib: fix warning about iterator Sudip Mukherjee <sudipm.mukherjee@gmail.com> - 2015-12-27 14:40 +0100
      Re: [PATCH v2] gpiolib: fix warning about iterator Linus Walleij <linus.walleij@linaro.org> - 2015-12-28 03:50 +0100

csiph-web