hwmon: (adcxx) Remove redundant spi_set_drvdata
PATCH 1/2 hwmon: (adcxx) Remove redundant spi_set_drvdata
Driver core sets driver data to NULL upon failure or remove.
Signed-off-by Sachin Kamat <[email protected]>
Cc Marc Pignat <[email protected]>
---
compile tested.
--- drivers/hwmon/adcxx.c | 2 -- 1 file changed, 2 deletions(-)
drivers/hwmon/adcxx.c +0 -2
@@ -203,7 +203,6 @@ out_err:for (i--; i >=0 ; i--)device_remove_file (&spi->dev, &ad_input[i].dev_attr); -spi_set_drvdata (spi,NULL );mutex_unlock (&adc->lock);return status; }
@@ -218,7 +217,6 @@ static int adcxx_remove(struct spi_device *spi)for (i =0 ; i <3 + adc->channels; i++)device_remove_file (&spi->dev, &ad_input[i].dev_attr); -spi_set_drvdata (spi,NULL );mutex_unlock (&adc->lock);return 0 ;
Signature · 7 lines
1.7.9.5 _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Acked-by Marc Pignat <[email protected]>
Quoted 24 lines · Sachin Kamat
Driver core sets driver data to NULL upon failure or remove.
Signed-off-by Sachin Kamat <[email protected]>Cc Marc Pignat <[email protected]>---
compile tested.--- drivers/hwmon/adcxx.c | 2 -- 1 file changed, 2 deletions(-)drivers/hwmon/adcxx.c +0
-1@@ -203,7 +203,6 @@ out_err:for (i--; i >=0 ; i--)device_remove_file (&spi->dev, &ad_input[i].dev_attr); -spi_set_drvdata (spi,NULL );mutex_unlock (&adc->lock);return status; }
drivers/hwmon/adcxx.c static int adcxx_remove(struct spi_device *spi) · line 222
Quoted 7 lines
drivers/hwmon/adcxx.c +0
-1@@ -218,7 +217,6 @@ static int adcxx_remove(struct spi_device *spi)for (i =0 ; i <3 + adc->channels; i++)device_remove_file (&spi->dev, &ad_input[i].dev_attr); -spi_set_drvdata (spi,NULL );mutex_unlock (&adc->lock);return 0 ;
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 4 lines · Sachin Kamat
Driver core sets driver data to NULL upon failure or remove.
Signed-off-by Sachin Kamat <[email protected]>Cc Marc Pignat <[email protected]>
Applied to -next.
Thanks,
Guenter
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors