diff options
author | Dan Williams <dan.j.williams@intel.com> | 2011-03-07 19:02:25 -0500 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2011-07-03 06:55:29 -0400 |
commit | b329aff107543c3c4db26c1572405034c3baf906 (patch) | |
tree | 96a9a1f4faa899f8b384a50172bd49f160acb7f7 /drivers/scsi/isci/host.c | |
parent | 52bed8eab5d392183b77426b96551011f3521ef8 (diff) |
isci: kill isci_host list in favor of an array
isci_host_by_id() should have been a clue that an array would have been
a simpler approach.
Reported-by: James Bottomley <James.Bottomley@suse.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/scsi/isci/host.c')
-rw-r--r-- | drivers/scsi/isci/host.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/isci/host.c b/drivers/scsi/isci/host.c index 40614e9ab41b..da0c0da4198f 100644 --- a/drivers/scsi/isci/host.c +++ b/drivers/scsi/isci/host.c | |||
@@ -78,8 +78,9 @@ irqreturn_t isci_intx_isr(int vec, void *data) | |||
78 | struct pci_dev *pdev = data; | 78 | struct pci_dev *pdev = data; |
79 | struct isci_host *ihost; | 79 | struct isci_host *ihost; |
80 | irqreturn_t ret = IRQ_NONE; | 80 | irqreturn_t ret = IRQ_NONE; |
81 | int i; | ||
81 | 82 | ||
82 | for_each_isci_host(ihost, pdev) { | 83 | for_each_isci_host(i, ihost, pdev) { |
83 | struct scic_sds_controller *scic = ihost->core_controller; | 84 | struct scic_sds_controller *scic = ihost->core_controller; |
84 | 85 | ||
85 | if (scic_sds_controller_isr(scic)) { | 86 | if (scic_sds_controller_isr(scic)) { |