Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4a8fd2cf authored by Roel Kluin's avatar Roel Kluin Committed by David S. Miller
Browse files

sungem: another error printed one too early



Another error was printed one too early.

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 94873111
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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)