Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/stand/ofwboot David Binderman in PR port-spar...



details:   https://anonhg.NetBSD.org/src/rev/babdb201d1ab
branches:  trunk
changeset: 815623:babdb201d1ab
user:      martin <martin%NetBSD.org@localhost>
date:      Mon May 30 10:37:14 2016 +0000

description:
David Binderman in PR port-sparc/51188: simplify while condition

diffstat:

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

diffs (18 lines):

diff -r b3006c604934 -r babdb201d1ab sys/arch/sparc/stand/ofwboot/boot.c
--- a/sys/arch/sparc/stand/ofwboot/boot.c       Mon May 30 09:34:39 2016 +0000
+++ b/sys/arch/sparc/stand/ofwboot/boot.c       Mon May 30 10:37:14 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: boot.c,v 1.31 2014/06/28 09:16:18 rtr Exp $    */
+/*     $NetBSD: boot.c,v 1.32 2016/05/30 10:37:14 martin Exp $ */
 
 /*
  * Copyright (c) 1997, 1999 Eduardo E. Horvath.  All rights reserved.
@@ -141,7 +141,7 @@
                }
                end1 = ap;
 
-               while (*ap != '\0' && *ap == ' ') {
+               while (*ap == ' ') {
                        ap++;
                }
 



Home | Main Index | Thread Index | Old Index