diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2010-03-01 09:29:38 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2010-03-01 09:29:38 +0000 |
commit | dd9e9e9d754649c28ea9b882a79c30c56aae8b20 (patch) | |
tree | f7bcf39de1935ba9edc6c56183823ab4e0026ad1 /sys/arch/loongson | |
parent | 56143f660d58389fbf2d300e70631610099f95d1 (diff) |
fix serial console switching logic; ok miod@ jasper@
Diffstat (limited to 'sys/arch/loongson')
-rw-r--r-- | sys/arch/loongson/loongson/yeeloong_machdep.c | 6 |
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; |