Source-Changes-HG archive

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

[src/trunk]: src/sys/net/npf npf_table_list: avoid triggering assert on diagn...



details:   https://anonhg.NetBSD.org/src/rev/3e04ee6c3660
branches:  trunk
changeset: 783088:3e04ee6c3660
user:      rmind <rmind%NetBSD.org@localhost>
date:      Tue Dec 04 19:28:16 2012 +0000

description:
npf_table_list: avoid triggering assert on diagnostic.

diffstat:

 sys/net/npf/npf_tableset.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r d3fc823846b7 -r 3e04ee6c3660 sys/net/npf/npf_tableset.c
--- a/sys/net/npf/npf_tableset.c        Tue Dec 04 19:21:12 2012 +0000
+++ b/sys/net/npf/npf_tableset.c        Tue Dec 04 19:28:16 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: npf_tableset.c,v 1.15 2012/10/29 02:27:12 rmind Exp $  */
+/*     $NetBSD: npf_tableset.c,v 1.16 2012/12/04 19:28:16 rmind Exp $  */
 
 /*-
  * Copyright (c) 2009-2012 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: npf_tableset.c,v 1.15 2012/10/29 02:27:12 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: npf_tableset.c,v 1.16 2012/12/04 19:28:16 rmind Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -575,8 +575,7 @@
                if (error)
                        break;
                error = table_tree_list(&t->t_tree[1], 128, ubuf, len, &off);
-               if (error)
-                       break;
+               break;
        default:
                KASSERT(false);
        }



Home | Main Index | Thread Index | Old Index