mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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]> Signed-off-by: Guenter Roeck <[email protected]>
This commit is contained in:
parent
20652ab8ca
commit
2825f033da
1 changed files with 0 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue