remove now redundant ri = ... lines in putchar() methods
Looks like none of my usual test builds used rasops2.c
This commit is contained in:
parent
fa836933a2
commit
38ea318425
@ -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 @@ rasops2_putchar(void *cookie, int row, int col, u_int uc, long attr)
|
||||
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 @@ rasops2_putchar8(void *cookie, int row, int col, u_int uc, long attr)
|
||||
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 @@ rasops2_putchar12(void *cookie, int row, int col, u_int uc, long attr)
|
||||
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 @@ rasops2_putchar16(void *cookie, int row, int col, u_int uc, long attr)
|
||||
return;
|
||||
}
|
||||
|
||||
ri = (struct rasops_info *)cookie;
|
||||
|
||||
#ifdef RASOPS_CLIPPING
|
||||
/* Catches 'row < 0' case too */
|
||||
if ((unsigned)row >= (unsigned)ri->ri_rows) {
|
||||
|
Loading…
Reference in New Issue
Block a user