Source-Changes-HG archive

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

[src/trunk]: src/sys/kern remove unnecessary double init (fron paulg)



details:   https://anonhg.NetBSD.org/src/rev/28e940fe89f5
branches:  trunk
changeset: 983906:28e940fe89f5
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Jun 13 14:02:46 2021 +0000

description:
remove unnecessary double init (fron paulg)

diffstat:

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

diffs (26 lines):

diff -r 943fd4e1acda -r 28e940fe89f5 sys/kern/subr_hash.c
--- a/sys/kern/subr_hash.c      Sun Jun 13 12:46:01 2021 +0000
+++ b/sys/kern/subr_hash.c      Sun Jun 13 14:02:46 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_hash.c,v 1.10 2021/06/13 03:09:20 christos Exp $  */
+/*     $NetBSD: subr_hash.c,v 1.11 2021/06/13 14:02:46 christos Exp $  */
 
 /*
  * Copyright (c) 1982, 1986, 1991, 1993
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_hash.c,v 1.10 2021/06/13 03:09:20 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_hash.c,v 1.11 2021/06/13 14:02:46 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/bitops.h>
@@ -214,7 +214,6 @@
                        return EINVAL;
                }
                query = true;
-               h = newp;
                error = sysctl_copyinstr(l, h->hash_name, queryname, 
                    sizeof(queryname), &s);
                if (error)



Home | Main Index | Thread Index | Old Index