diff options
author | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-07-28 12:39:05 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2009-08-22 18:52:01 -0400 |
commit | a4a8b064dd06d30d007e46445d17575e2875c340 (patch) | |
tree | 1dc550619f0e306d9a93eaad64c313bbe0e303ad | |
parent | 4643682ba50634db5cd61292711d031630baf233 (diff) |
[SCSI] scsi_transport_sas: fix incorrect duplicate setup of max_phys
There are two setup places for max_phys in scsi_transport_sas.c; one
incorrectly places a NULL into host_attrs instead of port_attrs. Remove it.
Reported-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
-rw-r--r-- | drivers/scsi/scsi_transport_sas.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/scsi/scsi_transport_sas.c b/drivers/scsi/scsi_transport_sas.c index 0895d3c71b03..fd47cb1bee1b 100644 --- a/drivers/scsi/scsi_transport_sas.c +++ b/drivers/scsi/scsi_transport_sas.c | |||
@@ -1692,10 +1692,6 @@ sas_attach_transport(struct sas_function_template *ft) | |||
1692 | i->f = ft; | 1692 | i->f = ft; |
1693 | 1693 | ||
1694 | count = 0; | 1694 | count = 0; |
1695 | SETUP_PORT_ATTRIBUTE(num_phys); | ||
1696 | i->host_attrs[count] = NULL; | ||
1697 | |||
1698 | count = 0; | ||
1699 | SETUP_PHY_ATTRIBUTE(initiator_port_protocols); | 1695 | SETUP_PHY_ATTRIBUTE(initiator_port_protocols); |
1700 | SETUP_PHY_ATTRIBUTE(target_port_protocols); | 1696 | SETUP_PHY_ATTRIBUTE(target_port_protocols); |
1701 | SETUP_PHY_ATTRIBUTE(device_type); | 1697 | SETUP_PHY_ATTRIBUTE(device_type); |