Skip to content

Commit

Permalink
Input: ad7879-spi - remove redundant spi_set_drvdata
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sachin Kamat authored and Dmitry Torokhov committed Sep 20, 2013
1 parent 993c379 commit 3a229b7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/input/touchscreen/ad7879-spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ static int ad7879_spi_remove(struct spi_device *spi)
struct ad7879 *ts = spi_get_drvdata(spi);

ad7879_remove(ts);
spi_set_drvdata(spi, NULL);

return 0;
}
Expand Down

0 comments on commit 3a229b7

Please sign in to comment.