Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/sun Call memset in a loop, not loop around doing not...



details:   https://anonhg.NetBSD.org/src/rev/d854378dd765
branches:  trunk
changeset: 793580:d854378dd765
user:      joerg <joerg%NetBSD.org@localhost>
date:      Thu Feb 20 02:09:28 2014 +0000

description:
Call memset in a loop, not loop around doing nothing and calling memset
once.

diffstat:

 sys/dev/sun/bwtwo.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r b68a61ac1585 -r d854378dd765 sys/dev/sun/bwtwo.c
--- a/sys/dev/sun/bwtwo.c       Thu Feb 20 01:41:28 2014 +0000
+++ b/sys/dev/sun/bwtwo.c       Thu Feb 20 02:09:28 2014 +0000
@@ -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 @@
         */
        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;



Home | Main Index | Thread Index | Old Index