diff mbox series

[PATCH-next] IIO: ADC: drop unused 'of_id' struct

Message ID 20180118234415.32410-1-chrisadr@gentoo.org
State New
Headers show
Series [PATCH-next] IIO: ADC: drop unused 'of_id' struct | expand

Commit Message

Christopher Diaz Riveros Jan. 18, 2018, 11:44 p.m. UTC
When CONFIG_STM32_DFSDM_CORE is enabled, stm32-dfsdm-core.o is compiled,
which raises a next warning:

drivers/iio/adc/stm32-dfsdm-core.c: In function ‘stm32_dfsdm_probe’:
drivers/iio/adc/stm32-dfsdm-core.c:245:29: warning: unused variable ‘of_id’ [-Wunused-variable]
  const struct of_device_id *of_id;
                             ^~~~~

Signed-off-by: Christopher Díaz Riveros <chrisadr@gentoo.org>
---
 drivers/iio/adc/stm32-dfsdm-core.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Arnaud POULIQUEN Jan. 19, 2018, 1:15 p.m. UTC | #1
Hi Christopher,

On 01/19/2018 12:44 AM, Christopher Díaz Riveros wrote:
> When CONFIG_STM32_DFSDM_CORE is enabled, stm32-dfsdm-core.o is compiled,
> which raises a next warning:
> 
> drivers/iio/adc/stm32-dfsdm-core.c: In function ‘stm32_dfsdm_probe’:
> drivers/iio/adc/stm32-dfsdm-core.c:245:29: warning: unused variable ‘of_id’ [-Wunused-variable]
>   const struct of_device_id *of_id;
>                              ^~~~~
> 
> Signed-off-by: Christopher Díaz Riveros <chrisadr@gentoo.org>
> ---
>  drivers/iio/adc/stm32-dfsdm-core.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/iio/adc/stm32-dfsdm-core.c b/drivers/iio/adc/stm32-dfsdm-core.c
> index 84277bcc465f..6290332cfd3f 100644
> --- a/drivers/iio/adc/stm32-dfsdm-core.c
> +++ b/drivers/iio/adc/stm32-dfsdm-core.c
> @@ -242,7 +242,6 @@ MODULE_DEVICE_TABLE(of, stm32_dfsdm_of_match);
>  static int stm32_dfsdm_probe(struct platform_device *pdev)
>  {
>  	struct dfsdm_priv *priv;
> -	const struct of_device_id *of_id;
>  	const struct stm32_dfsdm_dev_data *dev_data;
>  	struct stm32_dfsdm *dfsdm;
>  	int ret;
> 
Arnd was faster :)
https://patchwork.kernel.org/patch/10172885/

Regards
Arnaud
diff mbox series

Patch

diff --git a/drivers/iio/adc/stm32-dfsdm-core.c b/drivers/iio/adc/stm32-dfsdm-core.c
index 84277bcc465f..6290332cfd3f 100644
--- a/drivers/iio/adc/stm32-dfsdm-core.c
+++ b/drivers/iio/adc/stm32-dfsdm-core.c
@@ -242,7 +242,6 @@  MODULE_DEVICE_TABLE(of, stm32_dfsdm_of_match);
 static int stm32_dfsdm_probe(struct platform_device *pdev)
 {
 	struct dfsdm_priv *priv;
-	const struct of_device_id *of_id;
 	const struct stm32_dfsdm_dev_data *dev_data;
 	struct stm32_dfsdm *dfsdm;
 	int ret;