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:
parent
05f71ab631
commit
a13413ec39
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue