Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/rasops remove now redundant ri = ... lines in putcha...



details:   https://anonhg.NetBSD.org/src/rev/82afecd919fc
branches:  trunk
changeset: 754580:82afecd919fc
user:      macallan <macallan%NetBSD.org@localhost>
date:      Tue May 04 19:16:22 2010 +0000

description:
remove now redundant ri = ... lines in putchar() methods
Looks like none of my usual test builds used rasops2.c

diffstat:

 sys/dev/rasops/rasops2.c |  12 ++----------
 1 files changed, 2 insertions(+), 10 deletions(-)

diffs (54 lines):

diff -r 2d6a456e50f7 -r 82afecd919fc sys/dev/rasops/rasops2.c
--- a/sys/dev/rasops/rasops2.c  Tue May 04 16:47:13 2010 +0000
+++ b/sys/dev/rasops/rasops2.c  Tue May 04 19:16:22 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rasops2.c,v 1.16 2010/05/04 12:36:37 nonaka Exp $      */
+/*     $NetBSD: rasops2.c,v 1.17 2010/05/04 19:16:22 macallan Exp $    */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rasops2.c,v 1.16 2010/05/04 12:36:37 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rasops2.c,v 1.17 2010/05/04 19:16:22 macallan Exp $");
 
 #include "opt_rasops.h"
 
@@ -107,8 +107,6 @@
        int32_t *rp;
        u_char *fr;
 
-       ri = (struct rasops_info *)cookie;
-
 #ifdef RASOPS_CLIPPING
        /* Catches 'row < 0' case too */
        if ((unsigned)row >= (unsigned)ri->ri_rows)
@@ -256,8 +254,6 @@
                return;
        }
 
-       ri = (struct rasops_info *)cookie;
-
 #ifdef RASOPS_CLIPPING
        /* Catches 'row < 0' case too */
        if ((unsigned)row >= (unsigned)ri->ri_rows) {
@@ -323,8 +319,6 @@
                return;
        }
 
-       ri = (struct rasops_info *)cookie;
-
 #ifdef RASOPS_CLIPPING
        /* Catches 'row < 0' case too */
        if ((unsigned)row >= (unsigned)ri->ri_rows) {
@@ -393,8 +387,6 @@
                return;
        }
 
-       ri = (struct rasops_info *)cookie;
-
 #ifdef RASOPS_CLIPPING
        /* Catches 'row < 0' case too */
        if ((unsigned)row >= (unsigned)ri->ri_rows) {



Home | Main Index | Thread Index | Old Index