Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/wscons Don't #ifdef DIAGNOSTIC around KASSERTs.
details: https://anonhg.NetBSD.org/src/rev/3322b699b9c0
branches: trunk
changeset: 357262:3322b699b9c0
user: maya <maya%NetBSD.org@localhost>
date: Fri Nov 03 17:57:58 2017 +0000
description:
Don't #ifdef DIAGNOSTIC around KASSERTs.
the definition of KASSERT does the same thing
diffstat:
sys/dev/wscons/wsemul_sun.c | 6 ++----
sys/dev/wscons/wsemul_vt100.c | 6 ++----
2 files changed, 4 insertions(+), 8 deletions(-)
diffs (56 lines):
diff -r ee2f77c909a3 -r 3322b699b9c0 sys/dev/wscons/wsemul_sun.c
--- a/sys/dev/wscons/wsemul_sun.c Fri Nov 03 16:21:01 2017 +0000
+++ b/sys/dev/wscons/wsemul_sun.c Fri Nov 03 17:57:58 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wsemul_sun.c,v 1.30 2017/05/19 19:22:33 macallan Exp $ */
+/* $NetBSD: wsemul_sun.c,v 1.31 2017/11/03 17:57:58 maya Exp $ */
/*
* Copyright (c) 1996, 1997 Christopher G. Demetriou. All rights reserved.
@@ -33,7 +33,7 @@
/* XXX DESCRIPTION/SOURCE OF INFORMATION */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wsemul_sun.c,v 1.30 2017/05/19 19:22:33 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wsemul_sun.c,v 1.31 2017/11/03 17:57:58 maya Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -176,9 +176,7 @@
if (console) {
edp = &wsemul_sun_console_emuldata;
-#ifdef DIAGNOSTIC
KASSERT(edp->console == 1);
-#endif
} else {
edp = malloc(sizeof *edp, M_DEVBUF, M_WAITOK);
diff -r ee2f77c909a3 -r 3322b699b9c0 sys/dev/wscons/wsemul_vt100.c
--- a/sys/dev/wscons/wsemul_vt100.c Fri Nov 03 16:21:01 2017 +0000
+++ b/sys/dev/wscons/wsemul_vt100.c Fri Nov 03 17:57:58 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wsemul_vt100.c,v 1.38 2017/05/19 19:22:33 macallan Exp $ */
+/* $NetBSD: wsemul_vt100.c,v 1.39 2017/11/03 17:57:58 maya Exp $ */
/*
* Copyright (c) 1998
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wsemul_vt100.c,v 1.38 2017/05/19 19:22:33 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wsemul_vt100.c,v 1.39 2017/11/03 17:57:58 maya Exp $");
#ifdef _KERNEL_OPT
#include "opt_wsmsgattrs.h"
@@ -242,9 +242,7 @@
if (console) {
edp = &wsemul_vt100_console_emuldata;
-#ifdef DIAGNOSTIC
KASSERT(edp->console == 1);
-#endif
} else {
edp = malloc(sizeof *edp, M_DEVBUF, M_WAITOK);
wsemul_vt100_init(edp, type, cookie, ccol, crow, defattr);
Home |
Main Index |
Thread Index |
Old Index