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

drivers/block/sx8.c: remove unnecessary pci_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>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Jingoo Han and committed by
Jens Axboe
f2fc8af4 28e6c500

-1
-1
drivers/block/sx8.c
··· 1744 1744 kfree(host); 1745 1745 pci_release_regions(pdev); 1746 1746 pci_disable_device(pdev); 1747 - pci_set_drvdata(pdev, NULL); 1748 1747 } 1749 1748 1750 1749 module_pci_driver(carm_driver);