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

2015-12-27 Thread Linus Walleij
On Sun, Dec 27, 2015 at 2:36 PM, Sudip Mukherjee 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 > ---

[PATCH v2] gpiolib: fix warning about iterator

2015-12-27 Thread Sudip Mukherjee
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 --- v1: at the end of the loop iterator will point to head and we are

[PATCH v2] gpiolib: fix warning about iterator

2015-12-27 Thread Sudip Mukherjee
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 --- v1: at the end of the loop iterator will

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

2015-12-27 Thread Linus Walleij
On Sun, Dec 27, 2015 at 2:36 PM, Sudip Mukherjee 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. > >