summaryrefslogtreecommitdiff
path: root/sys/dev/sun
diff options
context:
space:
mode:
authorjoerg <joerg@NetBSD.org>2014-02-20 02:09:28 +0000
committerjoerg <joerg@NetBSD.org>2014-02-20 02:09:28 +0000
commit6e9ea87bc406ffb1a6fae5b7c3d5e77bd60dc0c6 (patch)
treeaf28b6e12f079e90bb5b87182b2ee427a60ff539 /sys/dev/sun
parent5a3c865d1b0cc1b22c092f4aa9f664122b360a70 (diff)
Call memset in a loop, not loop around doing nothing and calling memset
once.
Diffstat (limited to 'sys/dev/sun')
-rw-r--r--sys/dev/sun/bwtwo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/sun/bwtwo.c b/sys/dev/sun/bwtwo.c
index f737b884ac8..443eebfaae9 100644
--- a/sys/dev/sun/bwtwo.c
+++ b/sys/dev/sun/bwtwo.c
@@ -1,4 +1,4 @@
-/* $NetBSD: bwtwo.c,v 1.31 2013/12/02 15:54:06 jdc Exp $ */
+/* $NetBSD: bwtwo.c,v 1.32 2014/02/20 02:09:28 joerg Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -79,7 +79,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bwtwo.c,v 1.31 2013/12/02 15:54:06 jdc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bwtwo.c,v 1.32 2014/02/20 02:09:28 joerg Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -458,7 +458,7 @@ bwtwo_init_screen(void *cookie, struct vcons_screen *scr,
*/
for (bits = (char *) ri->ri_bits;
bits < (char *) ri->ri_bits + ri->ri_stride * ri->ri_height;
- bits += 4);
+ bits += 4)
memset(bits, (*defattr >> 16) & 0xff, 4);
rasops_init(ri, 0, 0);
ri->ri_caps = 0;