Re: [PATCH] IIO: ADC: stm32-dfsdm: avoid unused-variable warning

2018-01-14 Thread Jonathan Cameron
On Thu, 11 Jan 2018 18:38:49 +0100 Arnaud Pouliquen wrote: > On 01/11/2018 03:27 PM, Robin Murphy wrote: > > On 11/01/18 10:34, Arnd Bergmann wrote: > >> Building with CONFIG_OF disabled produces a compiler warning: > >> > >> drivers/iio/adc/stm32-dfsdm-core.c: In function 'stm32_dfsdm_probe':

Re: [PATCH] IIO: ADC: stm32-dfsdm: avoid unused-variable warning

2018-01-11 Thread Arnaud Pouliquen
On 01/11/2018 03:27 PM, Robin Murphy wrote: > On 11/01/18 10:34, Arnd Bergmann wrote: >> Building with CONFIG_OF disabled produces a compiler warning: >> >> drivers/iio/adc/stm32-dfsdm-core.c: In function 'stm32_dfsdm_probe': >> drivers/iio/adc/stm32-dfsdm-core.c:245:22: error: unused variable >>

Re: [PATCH] IIO: ADC: stm32-dfsdm: avoid unused-variable warning

2018-01-11 Thread Robin Murphy
On 11/01/18 10:34, Arnd Bergmann wrote: Building with CONFIG_OF disabled produces a compiler warning: drivers/iio/adc/stm32-dfsdm-core.c: In function 'stm32_dfsdm_probe': drivers/iio/adc/stm32-dfsdm-core.c:245:22: error: unused variable 'pnode' [-Werror=unused-variable] This removes the variab

[PATCH] IIO: ADC: stm32-dfsdm: avoid unused-variable warning

2018-01-11 Thread Arnd Bergmann
Building with CONFIG_OF disabled produces a compiler warning: drivers/iio/adc/stm32-dfsdm-core.c: In function 'stm32_dfsdm_probe': drivers/iio/adc/stm32-dfsdm-core.c:245:22: error: unused variable 'pnode' [-Werror=unused-variable] This removes the variable and open-codes it in the only place it