All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] pcnet32 one liner
@ 2001-01-13 23:49 Anton Blanchard
  0 siblings, 0 replies; only message in thread
From: Anton Blanchard @ 2001-01-13 23:49 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel


Hi,

The code below is suspect.

Anton

diff -r -u --new-file --exclude-from=/home/anton/kernel/exclude linux/drivers/net/pcnet32.c linux_work/drivers/net/pcnet32.c
--- linux/drivers/net/pcnet32.c	Tue Dec 12 14:27:56 2000
+++ linux_work/drivers/net/pcnet32.c	Tue Jan  9 15:12:20 2001
@@ -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 majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-01-13 23:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-13 23:49 [PATCH] pcnet32 one liner Anton Blanchard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.