net: mvneta: Drop one indentation level in mvneta_adjust_link()
Drop one indentation level in the mvneta_adjust_link() function. Signed-off-by: Marek Behún <marek.behun@nic.cz> Reviewed-by: Ramon Fried <rfried.dev@gmail.com> Reviewed-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
7ec50404ae
commit
ca4730a466
1 changed files with 18 additions and 20 deletions
|
@ -1161,9 +1161,8 @@ static void mvneta_adjust_link(struct udevice *dev)
|
|||
return;
|
||||
}
|
||||
|
||||
if (phydev->link) {
|
||||
if ((pp->speed != phydev->speed) ||
|
||||
(pp->duplex != phydev->duplex)) {
|
||||
if (phydev->link &&
|
||||
(pp->speed != phydev->speed || pp->duplex != phydev->duplex)) {
|
||||
u32 val;
|
||||
|
||||
val = mvreg_read(pp, MVNETA_GMAC_AUTONEG_CONFIG);
|
||||
|
@ -1186,7 +1185,6 @@ static void mvneta_adjust_link(struct udevice *dev)
|
|||
pp->duplex = phydev->duplex;
|
||||
pp->speed = phydev->speed;
|
||||
}
|
||||
}
|
||||
|
||||
if (phydev->link != pp->link) {
|
||||
if (!phydev->link) {
|
||||
|
|
Loading…
Reference in a new issue