Skip to contentSkip to conversation

pcnet32 one liner

PATCH New Anton Blanchard 1 participant 1 message Jan 13, 2001 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pcnet32 one liner

Hi,

The code below is suspect.

Anton

drivers/net/pcnet32.c +1 -1
diff -r -u --new-file --exclude-from=/home/anton/kernel/exclude linux/drivers/net/pcnet32.c linux_work/drivers/net/pcnet32.c
@@ -809,7 +809,7 @@
 	val |= 0x10;
     lp->a.write_csr (ioaddr, 124, val);
     
-    if (lp->mii & !(lp->options & PORT_ASEL)) {
+    if (lp->mii && !(lp->options & PORT_ASEL)) {
 	val = lp->a.read_bcr (ioaddr, 32) & ~0x38; /* disable Auto Negotiation, set 10Mpbs, HD */
 	if (lp->options & PORT_FD)
 	    val |= 0x10;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/