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 unused variables
details: https://anonhg.NetBSD.org/src/rev/9b4d839066ae
branches: trunk
changeset: 790023:9b4d839066ae
user: martin <martin%NetBSD.org@localhost>
date: Sun Sep 15 09:41:55 2013 +0000
description:
Remove unused variables
diffstat:
sys/dev/rasops/rasops8.c | 12 +++++-------
1 files changed, 5 insertions(+), 7 deletions(-)
diffs (53 lines):
diff -r d244a7e1e4bc -r 9b4d839066ae sys/dev/rasops/rasops8.c
--- a/sys/dev/rasops/rasops8.c Sun Sep 15 09:38:28 2013 +0000
+++ b/sys/dev/rasops/rasops8.c Sun Sep 15 09:41:55 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rasops8.c,v 1.33 2013/03/21 21:00:12 martin Exp $ */
+/* $NetBSD: rasops8.c,v 1.34 2013/09/15 09:41:55 martin Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rasops8.c,v 1.33 2013/03/21 21:00:12 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rasops8.c,v 1.34 2013/09/15 09:41:55 martin Exp $");
#include "opt_rasops.h"
@@ -193,15 +193,15 @@
static void
rasops8_putchar_aa(void *cookie, int row, int col, u_int uc, long attr)
{
- int width, height, fs;
- u_char *dp, *rp, *hp, *hrp, *fr, bg, fg, pixel;
+ int width, height;
+ u_char *rp, *hrp, *fr, bg, fg, pixel;
struct rasops_info *ri = (struct rasops_info *)cookie;
struct wsdisplay_font *font = PICK_FONT(ri, uc);
int x, y, r, g, b, aval;
int r1, g1, b1, r0, g0, b0, fgo, bgo;
uint8_t scanline[32] __attribute__ ((aligned(8)));
- hp = hrp = NULL;
+ hrp = NULL;
if (!CHAR_IN_FONT(uc, font))
return;
@@ -236,7 +236,6 @@
}
} else {
fr = WSFONT_GLYPH(uc, font);
- fs = font->stride;
/*
* we need the RGB colours here, get offsets into rasops_cmap
*/
@@ -251,7 +250,6 @@
b1 = rasops_cmap[fgo + 2];
for (y = 0; y < height; y++) {
- dp = rp;
for (x = 0; x < width; x++) {
aval = *fr;
fr++;
Home |
Main Index |
Thread Index |
Old Index