Module Name: src
Committed By: dholland
Date: Mon May 30 02:32:19 UTC 2016
Modified Files:
src/sys/arch/ia64/stand/common: boot.c
Log Message:
PR 51183 David Binderman: simplify redundant conditional
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/ia64/stand/common/boot.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/ia64/stand/common/boot.c
diff -u src/sys/arch/ia64/stand/common/boot.c:1.7 src/sys/arch/ia64/stand/common/boot.c:1.8
--- src/sys/arch/ia64/stand/common/boot.c:1.7 Tue Apr 8 21:51:06 2014
+++ src/sys/arch/ia64/stand/common/boot.c Mon May 30 02:32:19 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: boot.c,v 1.7 2014/04/08 21:51:06 martin Exp $ */
+/* $NetBSD: boot.c,v 1.8 2016/05/30 02:32:19 dholland Exp $ */
/*-
* Copyright (c) 1998 Michael Smith <[email protected]>
@@ -318,7 +318,7 @@ getrootmount(char *rootdev)
while ((*cp != 0) && isspace(*cp))
cp++;
/* must have /<space> to be root */
- if ((*cp == 0) || (*cp != '/') || !isspace(*(cp + 1)))
+ if ((*cp != '/') || !isspace(*(cp + 1)))
continue;
/* skip whitespace up to fstype */
cp += 2;