All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] iio: adc: rockchip_saradc: remove unused variable in probe
@ 2014-08-26 22:40 ` Heiko Stübner
  0 siblings, 0 replies; 4+ messages in thread
From: Heiko Stübner @ 2014-08-26 22:40 UTC (permalink / raw)
  To: Jonathan Cameron
  Cc: linux-arm-kernel, linux-rockchip, linux-kernel, linux-iio

The rate variable in the probe function of the saradc is a remnant
of a previous patch iteration. It is unused and thus produces a
compile time warning. Therefore remove it.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
---
 drivers/iio/adc/rockchip_saradc.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/iio/adc/rockchip_saradc.c b/drivers/iio/adc/rockchip_saradc.c
index 1fad964..e074a0b 100644
--- a/drivers/iio/adc/rockchip_saradc.c
+++ b/drivers/iio/adc/rockchip_saradc.c
@@ -141,7 +141,6 @@ static int rockchip_saradc_probe(struct platform_device *pdev)
 	struct resource	*mem;
 	int ret;
 	int irq;
-	u32 rate;
 
 	if (!np)
 		return -ENODEV;
-- 
2.0.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH] iio: adc: rockchip_saradc: remove unused variable in probe
@ 2014-08-26 22:40 ` Heiko Stübner
  0 siblings, 0 replies; 4+ messages in thread
From: Heiko Stübner @ 2014-08-26 22:40 UTC (permalink / raw)
  To: linux-arm-kernel

The rate variable in the probe function of the saradc is a remnant
of a previous patch iteration. It is unused and thus produces a
compile time warning. Therefore remove it.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
---
 drivers/iio/adc/rockchip_saradc.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/iio/adc/rockchip_saradc.c b/drivers/iio/adc/rockchip_saradc.c
index 1fad964..e074a0b 100644
--- a/drivers/iio/adc/rockchip_saradc.c
+++ b/drivers/iio/adc/rockchip_saradc.c
@@ -141,7 +141,6 @@ static int rockchip_saradc_probe(struct platform_device *pdev)
 	struct resource	*mem;
 	int ret;
 	int irq;
-	u32 rate;
 
 	if (!np)
 		return -ENODEV;
-- 
2.0.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] iio: adc: rockchip_saradc: remove unused variable in probe
  2014-08-26 22:40 ` Heiko Stübner
@ 2014-08-30  9:45   ` Jonathan Cameron
  -1 siblings, 0 replies; 4+ messages in thread
From: Jonathan Cameron @ 2014-08-30  9:45 UTC (permalink / raw)
  To: Heiko Stübner
  Cc: linux-arm-kernel, linux-rockchip, linux-kernel, linux-iio

On 26/08/14 23:40, Heiko Stübner wrote:
> The rate variable in the probe function of the saradc is a remnant
> of a previous patch iteration. It is unused and thus produces a
> compile time warning. Therefore remove it.
> 
> Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Applied to the togreg branch of iio.git - initially pushed out as testing
for the autobuilders to play.

Thanks,

Jonathan
> ---
>  drivers/iio/adc/rockchip_saradc.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/iio/adc/rockchip_saradc.c b/drivers/iio/adc/rockchip_saradc.c
> index 1fad964..e074a0b 100644
> --- a/drivers/iio/adc/rockchip_saradc.c
> +++ b/drivers/iio/adc/rockchip_saradc.c
> @@ -141,7 +141,6 @@ static int rockchip_saradc_probe(struct platform_device *pdev)
>  	struct resource	*mem;
>  	int ret;
>  	int irq;
> -	u32 rate;
>  
>  	if (!np)
>  		return -ENODEV;
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] iio: adc: rockchip_saradc: remove unused variable in probe
@ 2014-08-30  9:45   ` Jonathan Cameron
  0 siblings, 0 replies; 4+ messages in thread
From: Jonathan Cameron @ 2014-08-30  9:45 UTC (permalink / raw)
  To: linux-arm-kernel

On 26/08/14 23:40, Heiko St?bner wrote:
> The rate variable in the probe function of the saradc is a remnant
> of a previous patch iteration. It is unused and thus produces a
> compile time warning. Therefore remove it.
> 
> Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Applied to the togreg branch of iio.git - initially pushed out as testing
for the autobuilders to play.

Thanks,

Jonathan
> ---
>  drivers/iio/adc/rockchip_saradc.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/iio/adc/rockchip_saradc.c b/drivers/iio/adc/rockchip_saradc.c
> index 1fad964..e074a0b 100644
> --- a/drivers/iio/adc/rockchip_saradc.c
> +++ b/drivers/iio/adc/rockchip_saradc.c
> @@ -141,7 +141,6 @@ static int rockchip_saradc_probe(struct platform_device *pdev)
>  	struct resource	*mem;
>  	int ret;
>  	int irq;
> -	u32 rate;
>  
>  	if (!np)
>  		return -ENODEV;
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-08-30  9:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-26 22:40 [PATCH] iio: adc: rockchip_saradc: remove unused variable in probe Heiko Stübner
2014-08-26 22:40 ` Heiko Stübner
2014-08-30  9:45 ` Jonathan Cameron
2014-08-30  9:45   ` Jonathan Cameron

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.