From: xypron.glpk@gmx.de Date: Tue, 17 May 2016 23:58:45 +0000 (+0200) Subject: net: au1000 eth: simplify logical expression X-Git-Tag: v5.15~13573^2~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=074ba1e232f5a562ddd87e6ed0b342faae0aeb9b;p=platform%2Fkernel%2Flinux-starfive.git net: au1000 eth: simplify logical expression (a && a > 0) is equivalent to (a > 0). Signed-off-by: Heinrich Schuchardt Acked-by: Florian Fainelli Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/amd/au1000_eth.c b/drivers/net/ethernet/amd/au1000_eth.c index 9af309e..e0fb0f1 100644 --- a/drivers/net/ethernet/amd/au1000_eth.c +++ b/drivers/net/ethernet/amd/au1000_eth.c @@ -1269,7 +1269,7 @@ static int au1000_probe(struct platform_device *pdev) aup->phy_irq = pd->phy_irq; } - if (aup->phy_busid && aup->phy_busid > 0) { + if (aup->phy_busid > 0) { dev_err(&pdev->dev, "MAC0-associated PHY attached 2nd MACs MII bus not supported yet\n"); err = -ENODEV; goto err_mdiobus_alloc;