Module Name:    src
Committed By:   christos
Date:           Mon Jan 28 16:55:57 UTC 2019

Modified Files:
        src/sys/kern: sys_module.c

Log Message:
remove uninitialized (and unused)


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/kern/sys_module.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/kern/sys_module.c
diff -u src/sys/kern/sys_module.c:1.27 src/sys/kern/sys_module.c:1.28
--- src/sys/kern/sys_module.c:1.27	Sun Jan 27 13:29:10 2019
+++ src/sys/kern/sys_module.c	Mon Jan 28 11:55:57 2019
@@ -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 @@ handle_modctl_stat(struct iovec *iov, vo
 	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 @@ handle_modctl_stat(struct iovec *iov, vo
 		ms_cnt++;
 		mi = mod->mod_info;
 		if (mi->mi_required != NULL) {
-			req_cnt++;
 			req_len += strlen(mi->mi_required) + 1;
 		}
 	}
@@ -157,7 +155,6 @@ handle_modctl_stat(struct iovec *iov, vo
 		ms_cnt++;
 		mi = mod->mod_info;
 		if (mi->mi_required != NULL) {
-			req_cnt++;
 			req_len += strlen(mi->mi_required) + 1;
 		}
 	}

Reply via email to