Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/powerpc/ibm4xx/dev Correct a test for setting IFF_O...



details:   https://anonhg.NetBSD.org/src/rev/0322c9e16533
branches:  trunk
changeset: 553353:0322c9e16533
user:      simonb <simonb%NetBSD.org@localhost>
date:      Wed Oct 15 02:10:00 2003 +0000

description:
Correct a test for setting IFF_OACTIVE on the interface.

diffstat:

 sys/arch/powerpc/ibm4xx/dev/if_emac.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 6d3d9dbbf82b -r 0322c9e16533 sys/arch/powerpc/ibm4xx/dev/if_emac.c
--- a/sys/arch/powerpc/ibm4xx/dev/if_emac.c     Wed Oct 15 01:31:39 2003 +0000
+++ b/sys/arch/powerpc/ibm4xx/dev/if_emac.c     Wed Oct 15 02:10:00 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_emac.c,v 1.15 2003/07/15 02:54:44 lukem Exp $       */
+/*     $NetBSD: if_emac.c,v 1.16 2003/10/15 02:10:00 simonb Exp $      */
 
 /*
  * Copyright 2001, 2002 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_emac.c,v 1.15 2003/07/15 02:54:44 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_emac.c,v 1.16 2003/10/15 02:10:00 simonb Exp $");
 
 #include "bpfilter.h"
 
@@ -685,7 +685,7 @@
 #endif /* NBPFILTER > 0 */
        }
 
-       if (txs == NULL || sc->sc_txfree == 0) {
+       if (sc->sc_txfree == 0) {
                /* No more slots left; notify upper layer. */
                ifp->if_flags |= IFF_OACTIVE;
        }



Home | Main Index | Thread Index | Old Index