Source-Changes-HG archive

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

[src/trunk]: src/sys/kern remove uninitialized (and unused)



details:   https://anonhg.NetBSD.org/src/rev/081f7d14d181
branches:  trunk
changeset: 447935:081f7d14d181
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Jan 28 16:55:57 2019 +0000

description:
remove uninitialized (and unused)

diffstat:

 sys/kern/sys_module.c |  7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diffs (42 lines):

diff -r 7627f368ec89 -r 081f7d14d181 sys/kern/sys_module.c
--- a/sys/kern/sys_module.c     Mon Jan 28 15:56:12 2019 +0000
+++ b/sys/kern/sys_module.c     Mon Jan 28 16:55:57 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sys_module.c,v 1.27 2019/01/27 18:29:10 christos Exp $ */
+/*     $NetBSD: sys_module.c,v 1.28 2019/01/28 16:55:57 christos Exp $ */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_module.c,v 1.27 2019/01/27 18:29:10 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_module.c,v 1.28 2019/01/28 16:55:57 christos Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_modular.h"
@@ -117,7 +117,6 @@
        int ms_cnt;
        modstat_t *ms, *mso;
        size_t ms_len;
-       int req_cnt;
        char *req, *reqo;
        size_t req_len;
        char *out_p;
@@ -149,7 +148,6 @@
                ms_cnt++;
                mi = mod->mod_info;
                if (mi->mi_required != NULL) {
-                       req_cnt++;
                        req_len += strlen(mi->mi_required) + 1;
                }
        }
@@ -157,7 +155,6 @@
                ms_cnt++;
                mi = mod->mod_info;
                if (mi->mi_required != NULL) {
-                       req_cnt++;
                        req_len += strlen(mi->mi_required) + 1;
                }
        }



Home | Main Index | Thread Index | Old Index