summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxypron.glpk@gmx.de <xypron.glpk@gmx.de>2016-05-17 23:58:45 (GMT)
committerDavid S. Miller <davem@davemloft.net>2016-05-19 18:32:05 (GMT)
commit074ba1e232f5a562ddd87e6ed0b342faae0aeb9b (patch)
treebcdf83d059d893b691993922030e255a214079d8
parent30119059703f94e9e4936477bc33e918fb41e9c8 (diff)
downloadlinux-074ba1e232f5a562ddd87e6ed0b342faae0aeb9b.tar.xz
net: au1000 eth: simplify logical expression
(a && a > 0) is equivalent to (a > 0). Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Acked-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/amd/au1000_eth.c2
1 files changed, 1 insertions, 1 deletions
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;