SCSI: remove unnecessary pci_set_drvdata()
Since commit 0998d06310
(device-core: Ensure drvdata = NULL when no driver is bound),
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: James Bottomley <JBottomley@parallels.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
@@ -2583,7 +2583,6 @@ static int mvumi_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
|
||||
return 0;
|
||||
|
||||
fail_io_attach:
|
||||
pci_set_drvdata(pdev, NULL);
|
||||
mhba->instancet->disable_intr(mhba);
|
||||
free_irq(mhba->pdev->irq, mhba);
|
||||
fail_init_irq:
|
||||
@@ -2618,7 +2617,6 @@ static void mvumi_detach_one(struct pci_dev *pdev)
|
||||
free_irq(mhba->pdev->irq, mhba);
|
||||
mvumi_release_fw(mhba);
|
||||
scsi_host_put(host);
|
||||
pci_set_drvdata(pdev, NULL);
|
||||
pci_disable_device(pdev);
|
||||
dev_dbg(&pdev->dev, "driver is removed!\n");
|
||||
}
|
||||
|
Reference in New Issue
Block a user