1
0
Fork 0

Input: ad714x-spi - remove redundant spi_set_drvdata

Driver core sets driver data to NULL upon failure or remove.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
hifive-unleashed-5.1
Sachin Kamat 2013-09-20 09:12:52 -07:00 committed by Dmitry Torokhov
parent aed06b9cfc
commit 49e6c57450
1 changed files with 0 additions and 1 deletions

View File

@ -108,7 +108,6 @@ static int ad714x_spi_remove(struct spi_device *spi)
struct ad714x_chip *chip = spi_get_drvdata(spi);
ad714x_remove(chip);
spi_set_drvdata(spi, NULL);
return 0;
}