Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/arm PR/50881: David Binderman: Remove redundant...
details: https://anonhg.NetBSD.org/src/rev/e51c64d19cf5
branches: trunk
changeset: 343912:e51c64d19cf5
user: christos <christos%NetBSD.org@localhost>
date: Wed Mar 02 19:25:32 2016 +0000
description:
PR/50881: David Binderman: Remove redundant code.
diffstat:
sys/arch/arm/arm/bootconfig.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (28 lines):
diff -r fdc593fce59b -r e51c64d19cf5 sys/arch/arm/arm/bootconfig.c
--- a/sys/arch/arm/arm/bootconfig.c Wed Mar 02 19:24:20 2016 +0000
+++ b/sys/arch/arm/arm/bootconfig.c Wed Mar 02 19:25:32 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bootconfig.c,v 1.8 2015/01/06 00:43:21 jmcneill Exp $ */
+/* $NetBSD: bootconfig.c,v 1.9 2016/03/02 19:25:32 christos Exp $ */
/*
* Copyright (c) 1994-1998 Mark Brinicombe.
@@ -40,7 +40,7 @@
#include <sys/param.h>
-__KERNEL_RCSID(0, "$NetBSD: bootconfig.c,v 1.8 2015/01/06 00:43:21 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bootconfig.c,v 1.9 2016/03/02 19:25:32 christos Exp $");
#include <sys/systm.h>
@@ -89,8 +89,7 @@
++ptr;
if (*ptr == '=' ||
- (*ptr != '=' &&
- ((type & BOOTOPT_TYPE_MASK) == BOOTOPT_TYPE_BOOLEAN))) {
+ (type & BOOTOPT_TYPE_MASK) == BOOTOPT_TYPE_BOOLEAN) {
/* compare the option */
if (strncmp(optstart, opt, (ptr - optstart)) == 0) {
/* found */
Home |
Main Index |
Thread Index |
Old Index