From: Sachin Kamat Date: Tue, 8 Oct 2013 09:21:33 +0000 (+0530) Subject: mtd: sst25l: Remove redundant spi_set_drvdata X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fcfd9f2dd786a79400e1e799713ff71e939b40b5;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git mtd: sst25l: Remove redundant spi_set_drvdata Driver core will set the driver data to NULL upon detach or probe failure. Signed-off-by: Sachin Kamat Signed-off-by: Brian Norris --- diff --git a/drivers/mtd/devices/sst25l.c b/drivers/mtd/devices/sst25l.c index a42f1f0e7281..7cc70db97e59 100644 --- a/drivers/mtd/devices/sst25l.c +++ b/drivers/mtd/devices/sst25l.c @@ -404,7 +404,6 @@ static int sst25l_probe(struct spi_device *spi) data ? data->nr_parts : 0); if (ret) { kfree(flash); - spi_set_drvdata(spi, NULL); return -ENODEV; }