Source-Changes-HG archive

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

[src/trunk]: src/sys/net/npf Drop variable only used in return.



details:   https://anonhg.NetBSD.org/src/rev/4a1cf6b39b0a
branches:  trunk
changeset: 330764:4a1cf6b39b0a
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sun Jul 20 14:16:00 2014 +0000

description:
Drop variable only used in return.

diffstat:

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

diffs (35 lines):

diff -r b9edafbec85b -r 4a1cf6b39b0a sys/net/npf/npf_conn.c
--- a/sys/net/npf/npf_conn.c    Sun Jul 20 14:02:53 2014 +0000
+++ b/sys/net/npf/npf_conn.c    Sun Jul 20 14:16:00 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: npf_conn.c,v 1.4 2014/07/20 00:37:41 rmind Exp $       */
+/*     $NetBSD: npf_conn.c,v 1.5 2014/07/20 14:16:00 joerg Exp $       */
 
 /*-
  * Copyright (c) 2014 Mindaugas Rasiukevicius <rmind at netbsd org>
@@ -100,7 +100,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: npf_conn.c,v 1.4 2014/07/20 00:37:41 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: npf_conn.c,v 1.5 2014/07/20 14:16:00 joerg Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -826,7 +826,6 @@
 npf_conn_save(prop_array_t conlist, prop_array_t nplist)
 {
        npf_conn_t *con, *prev;
-       int error;
 
        /*
         * Note: acquire conn_lock to prevent from the database
@@ -877,7 +876,7 @@
        npf_conndb_settail(conn_db, prev);
        mutex_exit(&conn_lock);
 
-       return error;
+       return 0;
 }
 
 /*



Home | Main Index | Thread Index | Old Index