|
@@ -291,7 +291,7 @@ sci_mpc_agent_validate_phy_configuration(struct isci_host *ihost,
|
|
* Note: We have not moved the current phy_index so we will actually
|
|
* Note: We have not moved the current phy_index so we will actually
|
|
* compare the startting phy with itself.
|
|
* compare the startting phy with itself.
|
|
* This is expected and required to add the phy to the port. */
|
|
* This is expected and required to add the phy to the port. */
|
|
- while (phy_index < SCI_MAX_PHYS) {
|
|
|
|
|
|
+ for (; phy_index < SCI_MAX_PHYS; phy_index++) {
|
|
if ((phy_mask & (1 << phy_index)) == 0)
|
|
if ((phy_mask & (1 << phy_index)) == 0)
|
|
continue;
|
|
continue;
|
|
sci_phy_get_sas_address(&ihost->phys[phy_index],
|
|
sci_phy_get_sas_address(&ihost->phys[phy_index],
|
|
@@ -311,7 +311,6 @@ sci_mpc_agent_validate_phy_configuration(struct isci_host *ihost,
|
|
&ihost->phys[phy_index]);
|
|
&ihost->phys[phy_index]);
|
|
|
|
|
|
assigned_phy_mask |= (1 << phy_index);
|
|
assigned_phy_mask |= (1 << phy_index);
|
|
- phy_index++;
|
|
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|