summaryrefslogtreecommitdiff
path: root/drivers/scsi/isci/port_config.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2011-05-12 06:00:31 -0700
committerDan Williams <dan.j.williams@intel.com>2011-07-03 04:04:48 -0700
commit4f20ef4f57aa52fd3356c143a8f3d2bd18dc61fc (patch)
tree27c2c01305cad71eb6ebaf96e67ad3ce8d834c30 /drivers/scsi/isci/port_config.c
parent5b1d4af25186f5d23dae7a538d8472dacd9486c8 (diff)
isci: clarify phy to port lookups
While cleaning up the driver it is very tempting to convert scic_sds_get_* macros to their open coded equivalent. They are all just pointer dereferences *except* scic_sds_phy_get_port() which returns NULL if the phy is assigned to the dummy port. Clarify this by renaming it to phy_get_non_dummy_port(). Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/scsi/isci/port_config.c')
-rw-r--r--drivers/scsi/isci/port_config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/isci/port_config.c b/drivers/scsi/isci/port_config.c
index 028ffa370c90..ca76f493c30d 100644
--- a/drivers/scsi/isci/port_config.c
+++ b/drivers/scsi/isci/port_config.c
@@ -353,7 +353,7 @@ static void scic_sds_mpc_agent_timeout_handler(void *object)
if (configure_phy_mask & (1 << index)) {
port_agent->link_up_handler(scic, port_agent,
- scic_sds_phy_get_port(sci_phy),
+ phy_get_non_dummy_port(sci_phy),
sci_phy);
}
}