diff options
author | Bandan Das <bandan.das@Stratus.com> | 2010-06-16 13:39:42 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-07-27 13:02:37 -0400 |
commit | 15f7fc060a7bf49991c35b23e1e7d73a1535382a (patch) | |
tree | dbdf398bf3e877e805def26ac690b52e4542a085 | |
parent | c817ce842a539d2e536b328b9689e836d48b20e9 (diff) |
[SCSI] mpt fusion: Cleanup some duplicate calls in mptbase.c
In mpt_detach, call to pci_set_drvdata is redundant because it
has already been called in mpt_adapter_disable. In mpt_attach,
ioc->pcidev is set to pdev two times.
Signed-off-by: Bandan Das <bandan.das@stratus.com>
Acked-by: "Desai, Kashyap" <Kashyap.Desai@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
-rw-r--r-- | drivers/message/fusion/mptbase.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/message/fusion/mptbase.c b/drivers/message/fusion/mptbase.c index d0855f278db4..c36d5b9ff663 100644 --- a/drivers/message/fusion/mptbase.c +++ b/drivers/message/fusion/mptbase.c | |||
@@ -1770,7 +1770,6 @@ mpt_attach(struct pci_dev *pdev, const struct pci_device_id *id) | |||
1770 | ioc->req_sz = MPT_DEFAULT_FRAME_SIZE; /* avoid div by zero! */ | 1770 | ioc->req_sz = MPT_DEFAULT_FRAME_SIZE; /* avoid div by zero! */ |
1771 | ioc->reply_sz = MPT_REPLY_FRAME_SIZE; | 1771 | ioc->reply_sz = MPT_REPLY_FRAME_SIZE; |
1772 | 1772 | ||
1773 | ioc->pcidev = pdev; | ||
1774 | 1773 | ||
1775 | spin_lock_init(&ioc->taskmgmt_lock); | 1774 | spin_lock_init(&ioc->taskmgmt_lock); |
1776 | mutex_init(&ioc->internal_cmds.mutex); | 1775 | mutex_init(&ioc->internal_cmds.mutex); |
@@ -2054,7 +2053,6 @@ mpt_detach(struct pci_dev *pdev) | |||
2054 | 2053 | ||
2055 | mpt_adapter_dispose(ioc); | 2054 | mpt_adapter_dispose(ioc); |
2056 | 2055 | ||
2057 | pci_set_drvdata(pdev, NULL); | ||
2058 | } | 2056 | } |
2059 | 2057 | ||
2060 | /************************************************************************** | 2058 | /************************************************************************** |