hwmon: (lm70) Remove redundant spi_set_drvdata
PATCH 2/2 hwmon: (lm70) Remove redundant spi_set_drvdata
Driver core sets driver data to NULL upon failure or remove.
Signed-off-by Sachin Kamat <[email protected]>
Cc Kaiwan N Billimoria <[email protected]>
---
compile tested.
--- drivers/hwmon/lm70.c | 2 -- 1 file changed, 2 deletions(-)
drivers/hwmon/lm70.c +0 -2
@@ -174,7 +174,6 @@ out_dev_reg_failed: out_dev_create_file_failed:device_remove_file (&spi->dev, &dev_attr_temp1_input); out_dev_create_temp_file_failed: -spi_set_drvdata (spi,NULL );return status; }
@@ -185,7 +184,6 @@ static int lm70_remove(struct spi_device *spi)hwmon_device_unregister (p_lm70->hwmon_dev);device_remove_file (&spi->dev, &dev_attr_temp1_input);device_remove_file (&spi->dev, &dev_attr_name); -spi_set_drvdata (spi,NULL );return 0 ; }
Signature · 7 lines
1.7.9.5 _______________________________________________ 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 Kaiwan N Billimoria <[email protected]>
Applied to -next.
Thanks,
Guenter
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors