Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Fix an obvious typo found while reading the source.



details:   https://anonhg.NetBSD.org/src/rev/941a76dc9f63
branches:  trunk
changeset: 514426:941a76dc9f63
user:      enami <enami%NetBSD.org@localhost>
date:      Sun Sep 02 13:17:54 2001 +0000

description:
Fix an obvious typo found while reading the source.

diffstat:

 sys/dev/pci/if_pcn.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r c38c12c1a7f3 -r 941a76dc9f63 sys/dev/pci/if_pcn.c
--- a/sys/dev/pci/if_pcn.c      Sun Sep 02 13:13:41 2001 +0000
+++ b/sys/dev/pci/if_pcn.c      Sun Sep 02 13:17:54 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_pcn.c,v 1.3 2001/08/28 15:22:30 thorpej Exp $       */
+/*     $NetBSD: if_pcn.c,v 1.4 2001/09/02 13:17:54 enami Exp $ */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -1775,7 +1775,7 @@
 
        for (i = 0; i < PCN_NRXDESC; i++) {
                rxs = &sc->sc_rxsoft[i];
-               if (rxs->rxs_mbuf == NULL) {
+               if (rxs->rxs_mbuf != NULL) {
                        bus_dmamap_unload(sc->sc_dmat, rxs->rxs_dmamap);
                        m_freem(rxs->rxs_mbuf);
                        rxs->rxs_mbuf = NULL;



Home | Main Index | Thread Index | Old Index