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/bootxx Don't check if an array is (not)...



details:   https://anonhg.NetBSD.org/src/rev/e8b5cf0611de
branches:  trunk
changeset: 340891:e8b5cf0611de
user:      joerg <joerg%NetBSD.org@localhost>
date:      Thu Oct 08 20:58:13 2015 +0000

description:
Don't check if an array is (not) NULL, check if the string is empty.

diffstat:

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

diffs (18 lines):

diff -r f9a4a7251ad0 -r e8b5cf0611de sys/arch/sparc/stand/bootxx/bootxx.c
--- a/sys/arch/sparc/stand/bootxx/bootxx.c      Thu Oct 08 20:33:58 2015 +0000
+++ b/sys/arch/sparc/stand/bootxx/bootxx.c      Thu Oct 08 20:58:13 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bootxx.c,v 1.25 2009/10/26 19:16:57 cegger Exp $ */
+/*     $NetBSD: bootxx.c,v 1.26 2015/10/08 20:58:13 joerg Exp $ */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -86,7 +86,7 @@
        io.f_flags = F_RAW;
        if (devopen(&io, 0, &dummy1)) {
                panic("%s: can't open device `%s'", progname,
-                       prom_bootdevice != NULL ? prom_bootdevice : "unknown");
+                       prom_bootdevice[0] ? prom_bootdevice : "unknown");
        }
 
        (void)loadboot(&io, (void *)PROM_LOADADDR);



Home | Main Index | Thread Index | Old Index