diff options
author | Jingoo Han <jg1.han@samsung.com> | 2014-01-21 17:39:21 -0500 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2014-01-21 23:16:56 -0500 |
commit | f2fc8af41c351d11dcdd863356ff31fccf86cfed (patch) | |
tree | 31e28bb52b86413610b0ce04a2d34ad9c8e1982f /drivers/block/sx8.c | |
parent | 28e6c50069ae55ff15da1e64245286cc27901b96 (diff) |
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>
Diffstat (limited to 'drivers/block/sx8.c')
-rw-r--r-- | drivers/block/sx8.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/block/sx8.c b/drivers/block/sx8.c index 7b2ac9573984..d5e2d12b9d9e 100644 --- a/drivers/block/sx8.c +++ b/drivers/block/sx8.c | |||
@@ -1744,7 +1744,6 @@ static void carm_remove_one (struct pci_dev *pdev) | |||
1744 | kfree(host); | 1744 | kfree(host); |
1745 | pci_release_regions(pdev); | 1745 | pci_release_regions(pdev); |
1746 | pci_disable_device(pdev); | 1746 | pci_disable_device(pdev); |
1747 | pci_set_drvdata(pdev, NULL); | ||
1748 | } | 1747 | } |
1749 | 1748 | ||
1750 | module_pci_driver(carm_driver); | 1749 | module_pci_driver(carm_driver); |