From b6557eff13f03205b7ce25760a78583323090932 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Fri, 13 Oct 2000 17:27:33 +0000 Subject: Fix & vs. && bug in PHY detection. Found by Chad. --- drivers/net/ioc3-eth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ioc3-eth.c b/drivers/net/ioc3-eth.c index 91b6763f4..679d9ed6b 100644 --- a/drivers/net/ioc3-eth.c +++ b/drivers/net/ioc3-eth.c @@ -606,7 +606,7 @@ static int ioc3_mii_init(struct net_device *dev, struct ioc3_private *ip, phy = -1; for (i = 0; i < 32; i++) { word = mii_read(ioc3, i, 2); - if ((word != 0xffff) & (word != 0x0000)) { + if ((word != 0xffff) && (word != 0x0000)) { phy = i; break; /* Found a PHY */ } -- cgit v1.2.3