Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Style. NFCI.



details:   https://anonhg.NetBSD.org/src/rev/4f32b3cb147d
branches:  trunk
changeset: 372383:4f32b3cb147d
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Nov 19 15:30:12 2022 +0000

description:
Style. NFCI.

diffstat:

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

diffs (29 lines):

diff -r 1e80b9e5d576 -r 4f32b3cb147d sys/kern/subr_optstr.c
--- a/sys/kern/subr_optstr.c    Sat Nov 19 14:42:35 2022 +0000
+++ b/sys/kern/subr_optstr.c    Sat Nov 19 15:30:12 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_optstr.c,v 1.6 2016/05/30 11:24:40 martin Exp $   */
+/*     $NetBSD: subr_optstr.c,v 1.7 2022/11/19 15:30:12 skrll Exp $    */
 
 /*-
  * Copyright (c) 2006 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_optstr.c,v 1.6 2016/05/30 11:24:40 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_optstr.c,v 1.7 2022/11/19 15:30:12 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/optstr.h>
@@ -46,9 +46,7 @@
 bool
 optstr_get(const char *optstr, const char *key, char *buf, size_t bufsize)
 {
-       bool found;
-
-       found = false;
+       bool found = false;
 
        /* Skip any initial spaces until we find a word. */
        while (*optstr == ' ')



Home | Main Index | Thread Index | Old Index