Source-Changes-HG archive

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

[src/trunk]: src/sys/kern delete useless initialization



details:   https://anonhg.NetBSD.org/src/rev/12893f054ef7
branches:  trunk
changeset: 787695:12893f054ef7
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Jun 28 15:33:40 2013 +0000

description:
delete useless initialization
http://m00nbsd.net/ae123a9bae03f7dde5c6d654412daf5a.html

diffstat:

 sys/kern/subr_autoconf.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 5e2ed9e978d3 -r 12893f054ef7 sys/kern/subr_autoconf.c
--- a/sys/kern/subr_autoconf.c  Fri Jun 28 15:32:20 2013 +0000
+++ b/sys/kern/subr_autoconf.c  Fri Jun 28 15:33:40 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_autoconf.c,v 1.226 2013/02/09 00:31:21 christos Exp $ */
+/* $NetBSD: subr_autoconf.c,v 1.227 2013/06/28 15:33:40 christos Exp $ */
 
 /*
  * Copyright (c) 1996, 2000 Christopher G. Demetriou
@@ -77,7 +77,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.226 2013/02/09 00:31:21 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.227 2013/06/28 15:33:40 christos Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ddb.h"
@@ -241,7 +241,7 @@
 {
        void (*pr)(const char *, ...) __printflike(1, 2) =
            dopanic ? panic : printf;
-       int i = 0, error = 0, e2;
+       int i, error = 0, e2;
 
        for (i = 0; cfdriverv[i] != NULL; i++) {
                if ((error = drv_do(cfdriverv[i])) != 0) {



Home | Main Index | Thread Index | Old Index