Source-Changes-HG archive

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

[src/trunk]: src/sys/net Remove an obsolete assertion too (fix build)



details:   https://anonhg.NetBSD.org/src/rev/1d0a56d44364
branches:  trunk
changeset: 830196:1d0a56d44364
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Wed Feb 28 13:12:53 2018 +0000

description:
Remove an obsolete assertion too (fix build)

bif_refs was removed when migrated to use psref.

diffstat:

 sys/net/bridgestp.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (27 lines):

diff -r b045ff946a88 -r 1d0a56d44364 sys/net/bridgestp.c
--- a/sys/net/bridgestp.c       Wed Feb 28 11:29:14 2018 +0000
+++ b/sys/net/bridgestp.c       Wed Feb 28 13:12:53 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bridgestp.c,v 1.25 2018/02/28 10:34:04 ozaki-r Exp $   */
+/*     $NetBSD: bridgestp.c,v 1.26 2018/02/28 13:12:53 ozaki-r Exp $   */
 
 /*
  * Copyright (c) 2000 Jason L. Wright (jason%thought.net@localhost)
@@ -40,7 +40,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bridgestp.c,v 1.25 2018/02/28 10:34:04 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bridgestp.c,v 1.26 2018/02/28 13:12:53 ozaki-r Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -594,8 +594,6 @@
        struct bstp_tcn_unit tu;
        uint16_t len;
 
-       KASSERT(bif->bif_refs > 0);
-
        eh = mtod(m, struct ether_header *);
 
        if ((bif->bif_flags & IFBIF_STP) == 0)



Home | Main Index | Thread Index | Old Index