patch-1.3.32 linux/drivers/net/at1700.c

Next file: linux/drivers/net/eexpress.c
Previous file: linux/drivers/net/3c507.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.31/linux/drivers/net/at1700.c linux/drivers/net/at1700.c
@@ -187,7 +187,7 @@
 #endif
 	if (at1700_probe_list[inb(ioaddr + IOCONFIG) & 0x07] != ioaddr
 		|| read_eeprom(ioaddr, 4) != 0x0000
-		|| read_eeprom(ioaddr, 5) & 0xff00 != 0xF400)
+		|| (read_eeprom(ioaddr, 5) & 0xff00) != 0xF400)
 		return -ENODEV;
 
 	/* Reset the internal state machines. */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this