Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/x86 Fix wrong assertion logic.



details:   https://anonhg.NetBSD.org/src/rev/b18c8e2abd03
branches:  trunk
changeset: 762104:b18c8e2abd03
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Tue Feb 15 18:10:33 2011 +0000

description:
Fix wrong assertion logic.

diffstat:

 sys/arch/x86/x86/genfb_machdep.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 80200c8167c5 -r b18c8e2abd03 sys/arch/x86/x86/genfb_machdep.c
--- a/sys/arch/x86/x86/genfb_machdep.c  Tue Feb 15 17:50:46 2011 +0000
+++ b/sys/arch/x86/x86/genfb_machdep.c  Tue Feb 15 18:10:33 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: genfb_machdep.c,v 1.8 2011/02/10 10:21:40 jmcneill Exp $ */
+/* $NetBSD: genfb_machdep.c,v 1.9 2011/02/15 18:10:33 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2009 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: genfb_machdep.c,v 1.8 2011/02/10 10:21:40 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: genfb_machdep.c,v 1.9 2011/02/15 18:10:33 jruoho Exp $");
 
 #include "opt_mtrr.h"
 
@@ -80,7 +80,7 @@
 void
 x86_genfb_set_console_dev(device_t dev)
 {
-       KASSERT(x86_genfb_console_dev != NULL);
+       KASSERT(x86_genfb_console_dev == NULL);
        x86_genfb_console_dev = dev;
 }
 



Home | Main Index | Thread Index | Old Index