Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/wscons No need to check cell count.



details:   https://anonhg.NetBSD.org/src/rev/10be8b4f2940
branches:  trunk
changeset: 379162:10be8b4f2940
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Sun May 16 08:44:26 2021 +0000

description:
No need to check cell count.

diffstat:

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

diffs (28 lines):

diff -r c3010107726a -r 10be8b4f2940 sys/dev/wscons/wsdisplay_vcons.c
--- a/sys/dev/wscons/wsdisplay_vcons.c  Sun May 16 00:09:49 2021 +0000
+++ b/sys/dev/wscons/wsdisplay_vcons.c  Sun May 16 08:44:26 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wsdisplay_vcons.c,v 1.51 2021/01/28 17:40:00 macallan Exp $ */
+/*     $NetBSD: wsdisplay_vcons.c,v 1.52 2021/05/16 08:44:26 mlelstv Exp $ */
 
 /*-
  * Copyright (c) 2005, 2006 Michael Lorenz
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wsdisplay_vcons.c,v 1.51 2021/01/28 17:40:00 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wsdisplay_vcons.c,v 1.52 2021/05/16 08:44:26 mlelstv Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1630,9 +1630,6 @@ vcons_invalidate_cache(struct vcons_data
 {
        int i;
 
-       if (vd->cells == 0)
-               return;
-
        for (i = 0; i < vd->cells; i++) {
                vd->chars[i] = -1;
                vd->attrs[i] = -1;



Home | Main Index | Thread Index | Old Index