Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

misc: eeprom_93xx46: remove unnecessary spi_set_drvdata()

The driver core clears the driver data to NULL after device_release
or on probe failure. Thus, it is not needed to manually clear the
device driver data to NULL.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jingoo Han and committed by
Greg Kroah-Hartman
612340b1 94459a97

-1
-1
drivers/misc/eeprom/eeprom_93xx46.c
··· 378 378 device_remove_file(&spi->dev, &dev_attr_erase); 379 379 380 380 sysfs_remove_bin_file(&spi->dev.kobj, &edev->bin); 381 - spi_set_drvdata(spi, NULL); 382 381 kfree(edev); 383 382 return 0; 384 383 }