Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1402658 > unrolled thread
| Started by | Heinrich Schuchardt <xypron.glpk@gmx.de> |
|---|---|
| First post | 2016-05-18 02:00 +0200 |
| Last post | 2016-05-19 20:40 +0200 |
| Articles | 3 — 3 participants |
Back to article view | Back to linux.kernel
[PATCH] net: au1000 eth: simplify logical expression Heinrich Schuchardt <xypron.glpk@gmx.de> - 2016-05-18 02:00 +0200
Re: [PATCH] net: au1000 eth: simplify logical expression Florian Fainelli <f.fainelli@gmail.com> - 2016-05-18 07:10 +0200
Re: [PATCH] net: au1000 eth: simplify logical expression David Miller <davem@davemloft.net> - 2016-05-19 20:40 +0200
| From | Heinrich Schuchardt <xypron.glpk@gmx.de> |
|---|---|
| Date | 2016-05-18 02:00 +0200 |
| Subject | [PATCH] net: au1000 eth: simplify logical expression |
| Message-ID | <rzX46-2JS-17@gated-at.bofh.it> |
(a && a > 0) is equivalent to (a > 0).
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
drivers/net/ethernet/amd/au1000_eth.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
--
2.1.4
[toc] | [next] | [standalone]
| From | Florian Fainelli <f.fainelli@gmail.com> |
|---|---|
| Date | 2016-05-18 07:10 +0200 |
| Message-ID | <rA1U5-655-1@gated-at.bofh.it> |
| In reply to | #1402658 |
Le 17/05/2016 16:58, Heinrich Schuchardt a écrit : > (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> -- Florian
[toc] | [prev] | [next] | [standalone]
| From | David Miller <davem@davemloft.net> |
|---|---|
| Date | 2016-05-19 20:40 +0200 |
| Message-ID | <rAB1w-3od-7@gated-at.bofh.it> |
| In reply to | #1402658 |
From: Heinrich Schuchardt <xypron.glpk@gmx.de> Date: Wed, 18 May 2016 01:58:45 +0200 > (a && a > 0) is equivalent to (a > 0). > > Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Applied.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web