]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6070fca025cf8d225433fcb6b2191e6f4a1c964d
treef4298f1b4a613605bb59408fe8f128134da1111e
parentd24cad29dd871b81557bf0f6740d200b4bf6b185
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: 9f098a67065e ("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