Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/wscons wsemul_vt100_subr: don't assert unsigned ncol...



details:   https://anonhg.NetBSD.org/src/rev/26fbe6c01e3f
branches:  trunk
changeset: 373759:26fbe6c01e3f
user:      uwe <uwe%NetBSD.org@localhost>
date:      Sun Feb 26 13:57:56 2023 +0000

description:
wsemul_vt100_subr: don't assert unsigned ncols >= 0

diffstat:

 sys/dev/wscons/wsemul_vt100_subr.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 45015afee469 -r 26fbe6c01e3f sys/dev/wscons/wsemul_vt100_subr.c
--- a/sys/dev/wscons/wsemul_vt100_subr.c        Sun Feb 26 07:27:14 2023 +0000
+++ b/sys/dev/wscons/wsemul_vt100_subr.c        Sun Feb 26 13:57:56 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wsemul_vt100_subr.c,v 1.28 2023/02/23 02:48:06 riastradh Exp $ */
+/* $NetBSD: wsemul_vt100_subr.c,v 1.29 2023/02/26 13:57:56 uwe Exp $ */
 
 /*
  * Copyright (c) 1998
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wsemul_vt100_subr.c,v 1.28 2023/02/23 02:48:06 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wsemul_vt100_subr.c,v 1.29 2023/02/26 13:57:56 uwe Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -767,7 +767,6 @@
                return;
            case DCSTYPE_TABRESTORE:
                KASSERT(edp->tabs != 0);
-               KASSERT(edp->ncols >= 0);
                KASSERT(edp->ncols <= 1024);
                memset(edp->tabs, 0, edp->ncols);
                pos = 0;



Home | Main Index | Thread Index | Old Index