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:30:21 +0000 (12:30 +0000)
commit25140717414c319bcc44b5aac39357a52d0bc8e0
treef4298f1b4a613605bb59408fe8f128134da1111e
parent9ae148f80a96a91b636ab0b57d24d4440b919817
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