From: James Bottomley Date: Tue, 28 Jul 2009 16:39:05 +0000 (+0000) Subject: [SCSI] scsi_transport_sas: fix incorrect duplicate setup of max_phys X-Git-Tag: v2.6.32-rc1~689^2~188 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4a8b064dd06d30d007e46445d17575e2875c340;p=pandora-kernel.git [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 Signed-off-by: James Bottomley Signed-off-by: James Bottomley --- 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 @@ -1691,10 +1691,6 @@ sas_attach_transport(struct sas_function_template *ft) i->f = ft; - count = 0; - SETUP_PORT_ATTRIBUTE(num_phys); - i->host_attrs[count] = NULL; - count = 0; SETUP_PHY_ATTRIBUTE(initiator_port_protocols); SETUP_PHY_ATTRIBUTE(target_port_protocols);