Module Name:    src
Committed By:   christos
Date:           Wed Mar  2 19:25:32 UTC 2016

Modified Files:
        src/sys/arch/arm/arm: bootconfig.c

Log Message:
PR/50881: David Binderman: Remove redundant code.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/arm/arm/bootconfig.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/arch/arm/arm/bootconfig.c
diff -u src/sys/arch/arm/arm/bootconfig.c:1.8 src/sys/arch/arm/arm/bootconfig.c:1.9
--- src/sys/arch/arm/arm/bootconfig.c:1.8	Mon Jan  5 19:43:21 2015
+++ src/sys/arch/arm/arm/bootconfig.c	Wed Mar  2 14:25:32 2016
@@ -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 @@ get_bootconf_option(char *opts, const ch
 			++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 */

Reply via email to