Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/ia64/stand/common PR 51183 David Binderman: simplif...



details:   https://anonhg.NetBSD.org/src/rev/045780e1cf1b
branches:  trunk
changeset: 345469:045780e1cf1b
user:      dholland <dholland%NetBSD.org@localhost>
date:      Mon May 30 02:32:19 2016 +0000

description:
PR 51183 David Binderman: simplify redundant conditional

diffstat:

 sys/arch/ia64/stand/common/boot.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 45e928e59bed -r 045780e1cf1b sys/arch/ia64/stand/common/boot.c
--- a/sys/arch/ia64/stand/common/boot.c Mon May 30 02:30:20 2016 +0000
+++ b/sys/arch/ia64/stand/common/boot.c Mon May 30 02:32:19 2016 +0000
@@ -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 <msmith%freebsd.org@localhost>
@@ -318,7 +318,7 @@
        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;



Home | Main Index | Thread Index | Old Index