Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/zaurus/stand/zboot PR 51195 David Binderman: simpli...



details:   https://anonhg.NetBSD.org/src/rev/05eb621a6dbb
branches:  trunk
changeset: 345523:05eb621a6dbb
user:      dholland <dholland%NetBSD.org@localhost>
date:      Tue May 31 04:13:26 2016 +0000

description:
PR 51195 David Binderman: simplify redundant conditional.

XXX: there are too many copies of this function floating around ("gettrailer")

diffstat:

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

diffs (18 lines):

diff -r 22859571665f -r 05eb621a6dbb sys/arch/zaurus/stand/zboot/boot.c
--- a/sys/arch/zaurus/stand/zboot/boot.c        Tue May 31 04:12:10 2016 +0000
+++ b/sys/arch/zaurus/stand/zboot/boot.c        Tue May 31 04:13:26 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: boot.c,v 1.6 2014/06/28 09:16:18 rtr Exp $     */
+/*     $NetBSD: boot.c,v 1.7 2016/05/31 04:13:26 dholland Exp $        */
 
 /*
  * Copyright (c) 2009 NONAKA Kimihiro <nonaka%netbsd.org@localhost>
@@ -445,7 +445,7 @@
                *options++ = '\0';
 
        /* trim leading blanks */
-       while (*options && *options == ' ')
+       while (*options == ' ')
                options++;
 
        return options;



Home | Main Index | Thread Index | Old Index