dp: tx: Removed redundant condition.

If link does not need to be re-enabled, then it is already disabled. Don't need
to disable the link again.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
This commit is contained in:
Andrei-Liviu Simion 2015-01-25 22:06:05 -08:00 committed by Nava kishore Manne
parent 05f71ab631
commit a13413ec39

View file

@ -390,7 +390,9 @@ u32 XDp_TxEstablishLink(XDp *InstancePtr)
/* Disable main link during training. */
ReenableMainLink = XDp_ReadReg(InstancePtr->Config.BaseAddr,
XDP_TX_ENABLE_MAIN_STREAM);
XDp_TxDisableMainLink(InstancePtr);
if (ReenableMainLink) {
XDp_TxDisableMainLink(InstancePtr);
}
/* Train main link. */
Status = XDp_TxRunTraining(InstancePtr);