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 <sachin.kamat@linaro.org> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
This commit is contained in:
parent
2aabeb20ee
commit
fcfd9f2dd7
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user