summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/loongson/loongson/yeeloong_machdep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/loongson/loongson/yeeloong_machdep.c b/sys/arch/loongson/loongson/yeeloong_machdep.c
index e5228b7eca4..d413711f458 100644
--- a/sys/arch/loongson/loongson/yeeloong_machdep.c
+++ b/sys/arch/loongson/loongson/yeeloong_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: yeeloong_machdep.c,v 1.9 2010/02/28 22:39:14 miod Exp $ */
+/* $OpenBSD: yeeloong_machdep.c,v 1.10 2010/03/01 09:29:37 otto Exp $ */
/*
* Copyright (c) 2009, 2010 Miodrag Vallat.
@@ -232,9 +232,9 @@ fuloong_setup(void)
int serial;
envvar = pmon_getenv("nokbd");
- serial = envvar == 0;
+ serial = envvar != NULL;
envvar = pmon_getenv("novga");
- serial = serial && envvar == 0;
+ serial = serial && envvar != NULL;
if (serial) {
comconsiot = &bonito_pci_io_space_tag;