summaryrefslogtreecommitdiff
path: root/drivers/scsi/isci/remote_device.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2011-04-26 09:41:52 -0700
committerDan Williams <dan.j.williams@intel.com>2011-07-03 04:00:38 -0700
commita3d568f0dfbb6bc786df04ad13e0b401f80e614c (patch)
tree690eef9305ba277b63b6df5961d1a0b1331b3e6a /drivers/scsi/isci/remote_device.c
parent00d680ef84570bc7aea023772d27e85b0052004c (diff)
downloadlinux-rt-a3d568f0dfbb6bc786df04ad13e0b401f80e614c.tar.gz
isci: remove usage of sci_sas_address in scic_sds_remote_device
The sas address can be retrieved from the domain device and then converted to the always little-endian format in the remote node context. Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/scsi/isci/remote_device.c')
-rw-r--r--drivers/scsi/isci/remote_device.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/scsi/isci/remote_device.c b/drivers/scsi/isci/remote_device.c
index 5ba3b5dca4d5..1e9e2227820a 100644
--- a/drivers/scsi/isci/remote_device.c
+++ b/drivers/scsi/isci/remote_device.c
@@ -1501,8 +1501,6 @@ static enum sci_status scic_remote_device_da_construct(struct scic_sds_port *sci
sci_dev->rnc.remote_node_index = remote_node_index;
- scic_sds_port_get_attached_sas_address(sci_port, &sci_dev->device_address);
-
if (dev->dev_type == SAS_END_DEV)
sci_dev->has_ready_substate_machine = false;
else if (dev->dev_type == SATA_DEV || (dev->tproto & SAS_PROTOCOL_STP)) {
@@ -1553,7 +1551,6 @@ static enum sci_status scic_remote_device_ea_construct(struct scic_sds_port *sci
enum sci_status status;
scic_remote_device_construct(sci_port, sci_dev);
- memcpy(&sci_dev->device_address, dev->sas_addr, SAS_ADDR_SIZE);
status = scic_sds_controller_allocate_remote_node_context(
scic, sci_dev, &sci_dev->rnc.remote_node_index);