Re: [PATCH 1/2] staging:iio:spear_adc: Remove unused variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/07/13 14:26, Lars-Peter Clausen wrote:
> Remove the scale_mv variable from the read_raw() callback. Fixes the following
> warning:
> 	drivers/staging/iio/adc/spear_adc.c: In function 'spear_read_raw':
> 	drivers/staging/iio/adc/spear_adc.c:149:6: warning: unused variable 'scale_mv'
> 
> Signed-off-by: Lars-Peter Clausen <lars@xxxxxxxxxx>
> Cc: Stefan Roese <sr@xxxxxxx>
Applied to the togreg branch of iio.git

Thanks.
> ---
>  drivers/staging/iio/adc/spear_adc.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/staging/iio/adc/spear_adc.c b/drivers/staging/iio/adc/spear_adc.c
> index 657e01b..fc99598 100644
> --- a/drivers/staging/iio/adc/spear_adc.c
> +++ b/drivers/staging/iio/adc/spear_adc.c
> @@ -146,7 +146,6 @@ static int spear_read_raw(struct iio_dev *indio_dev,
>  			  long mask)
>  {
>  	struct spear_adc_info *info = iio_priv(indio_dev);
> -	u32 scale_mv;
>  	u32 status;
>  
>  	switch (mask) {
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux