summaryrefslogtreecommitdiff
path: root/drivers/block/sx8.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2014-01-10 12:40:54 +1100
committerStephen Rothwell <sfr@canb.auug.org.au>2014-01-10 12:40:54 +1100
commit63c6d706637cb31500c72144f5ceb5884cb81576 (patch)
treec40275f5fb8ec62ac953e7d4a829f02d4ad18438 /drivers/block/sx8.c
parentc1e3cdd7c47712003dbdf1a256e7b1d242723bed (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>
Diffstat (limited to 'drivers/block/sx8.c')
-rw-r--r--drivers/block/sx8.c1
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)
kfree(host);
pci_release_regions(pdev);
pci_disable_device(pdev);
- pci_set_drvdata(pdev, NULL);
}
module_pci_driver(carm_driver);