From d2dddf48942cc58efed2a6c3269cfe65e5c795f5 Mon Sep 17 00:00:00 2001 From: mlelstv Date: Sun, 16 May 2021 08:44:26 +0000 Subject: No need to check cell count. --- sys/dev/wscons/wsdisplay_vcons.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/wscons/wsdisplay_vcons.c b/sys/dev/wscons/wsdisplay_vcons.c index 142ad000ba2..e21222ede93 100644 --- a/sys/dev/wscons/wsdisplay_vcons.c +++ b/sys/dev/wscons/wsdisplay_vcons.c @@ -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 -__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 #include @@ -1630,9 +1630,6 @@ vcons_invalidate_cache(struct vcons_data *vd) { int i; - if (vd->cells == 0) - return; - for (i = 0; i < vd->cells; i++) { vd->chars[i] = -1; vd->attrs[i] = -1; -- cgit