Skip to content

Commit

Permalink
[SCSI] scsi_transport_sas: fix incorrect duplicate setup of max_phys
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
James Bottomley authored and James Bottomley committed Aug 22, 2009
1 parent 4643682 commit a4a8b06
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/scsi/scsi_transport_sas.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a4a8b06

Please sign in to comment.