From: Sachin Kamat Date: Fri, 20 Sep 2013 16:12:52 +0000 (-0700) Subject: Input: ad714x-spi - remove redundant spi_set_drvdata X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=49e6c574508efc9c0914077af164245163ce1638;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Input: ad714x-spi - remove redundant spi_set_drvdata Driver core sets driver data to NULL upon failure or remove. Signed-off-by: Sachin Kamat Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/misc/ad714x-spi.c b/drivers/input/misc/ad714x-spi.c index 61891486067c..3a90b710e309 100644 --- a/drivers/input/misc/ad714x-spi.c +++ b/drivers/input/misc/ad714x-spi.c @@ -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; }