Module Name:    src
Committed By:   rmind
Date:           Tue Dec  4 19:28:17 UTC 2012

Modified Files:
        src/sys/net/npf: npf_tableset.c

Log Message:
npf_table_list: avoid triggering assert on diagnostic.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/net/npf/npf_tableset.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/net/npf/npf_tableset.c
diff -u src/sys/net/npf/npf_tableset.c:1.15 src/sys/net/npf/npf_tableset.c:1.16
--- src/sys/net/npf/npf_tableset.c:1.15	Mon Oct 29 02:27:12 2012
+++ src/sys/net/npf/npf_tableset.c	Tue Dec  4 19:28:16 2012
@@ -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 @@ npf_table_list(npf_tableset_t *tset, u_i
 		if (error)
 			break;
 		error = table_tree_list(&t->t_tree[1], 128, ubuf, len, &off);
-		if (error)
-			break;
+		break;
 	default:
 		KASSERT(false);
 	}

Reply via email to