Module Name: src
Committed By: joerg
Date: Thu Feb 20 02:09:28 UTC 2014
Modified Files:
src/sys/dev/sun: bwtwo.c
Log Message:
Call memset in a loop, not loop around doing nothing and calling memset
once.
To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/sys/dev/sun/bwtwo.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/sun/bwtwo.c
diff -u src/sys/dev/sun/bwtwo.c:1.31 src/sys/dev/sun/bwtwo.c:1.32
--- src/sys/dev/sun/bwtwo.c:1.31 Mon Dec 2 15:54:06 2013
+++ src/sys/dev/sun/bwtwo.c Thu Feb 20 02:09:28 2014
@@ -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 v
*/
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;