OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3011905
)
net: au1000 eth: simplify logical expression
author
xypron.glpk@gmx.de
<xypron.glpk@gmx.de>
Tue, 17 May 2016 23:58:45 +0000
(
01:58
+0200)
committer
David S. Miller
<davem@davemloft.net>
Thu, 19 May 2016 18:32:05 +0000
(11:32 -0700)
(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>
drivers/net/ethernet/amd/au1000_eth.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/amd/au1000_eth.c
b/drivers/net/ethernet/amd/au1000_eth.c
index
9af309e
..
e0fb0f1
100644
(file)
--- 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;