summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorxypron.glpk@gmx.de <xypron.glpk@gmx.de>2016-05-18 02:58:45 +0300
committerDavid S. Miller <davem@davemloft.net>2016-05-19 21:32:05 +0300
commit074ba1e232f5a562ddd87e6ed0b342faae0aeb9b (patch)
treebcdf83d059d893b691993922030e255a214079d8 /drivers
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>
Diffstat (limited to 'drivers')
-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 9af309e017fd..e0fb0f1122db 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;