sungem: another error printed one too early
Another error was printed one too early. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
9487311157
commit
4a8fd2cfda
@@ -1229,7 +1229,7 @@ static void gem_reset(struct gem *gp)
|
|||||||
break;
|
break;
|
||||||
} while (val & (GREG_SWRST_TXRST | GREG_SWRST_RXRST));
|
} while (val & (GREG_SWRST_TXRST | GREG_SWRST_RXRST));
|
||||||
|
|
||||||
if (limit <= 0)
|
if (limit < 0)
|
||||||
printk(KERN_ERR "%s: SW reset is ghetto.\n", gp->dev->name);
|
printk(KERN_ERR "%s: SW reset is ghetto.\n", gp->dev->name);
|
||||||
|
|
||||||
if (gp->phy_type == phy_serialink || gp->phy_type == phy_serdes)
|
if (gp->phy_type == phy_serialink || gp->phy_type == phy_serdes)
|
||||||
|
Reference in New Issue
Block a user