IIO: ADC: stm32-dfsdm: avoid unused-variable warning
authorArnd Bergmann <arnd@arndb.de>
Thu, 11 Jan 2018 10:34:46 +0000 (11:34 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 11 Jan 2018 12:29:35 +0000 (12:29 +0000)
commit2353758bc2d427809f5feb15f046ded91c60afef
tree9db92be590aa9c94bddb27e3f739c8029f19db94
parent6dee6722c6065f4850eab98c2b7b9f4a08a35813
IIO: ADC: stm32-dfsdm: avoid unused-variable warning

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 gets used to avoid that warning.

Fixes: bed73904e76f ("IIO: ADC: add stm32 DFSDM core support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/iio/adc/stm32-dfsdm-core.c