Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic more unused variables.
details: https://anonhg.NetBSD.org/src/rev/ade11306ad81
branches: trunk
changeset: 328809:ade11306ad81
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Fri Apr 18 22:02:44 2014 +0000
description:
more unused variables.
diffstat:
sys/dev/ic/vga_raster.c | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
diffs (61 lines):
diff -r 85b75c455775 -r ade11306ad81 sys/dev/ic/vga_raster.c
--- a/sys/dev/ic/vga_raster.c Fri Apr 18 21:54:52 2014 +0000
+++ b/sys/dev/ic/vga_raster.c Fri Apr 18 22:02:44 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vga_raster.c,v 1.39 2014/04/18 21:45:22 mlelstv Exp $ */
+/* $NetBSD: vga_raster.c,v 1.40 2014/04/18 22:02:44 mlelstv Exp $ */
/*
* Copyright (c) 2001, 2002 Bang Jun-Young
@@ -56,7 +56,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vga_raster.c,v 1.39 2014/04/18 21:45:22 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vga_raster.c,v 1.40 2014/04/18 22:02:44 mlelstv Exp $");
#include "opt_vga.h"
#include "opt_wsmsgattrs.h" /* for WSDISPLAY_CUSTOM_OUTPUT */
@@ -1045,7 +1045,6 @@
static void
vga_raster_cursor_init(struct vgascreen *scr, int existing)
{
- struct vga_handle *vh = scr->hdl;
int off;
if (existing) {
@@ -1196,7 +1195,7 @@
int i;
int rasoff, rasoff2;
int fheight = scr->type->fontheight;
- volatile u_int8_t dummy __used, pattern;
+ volatile u_int8_t pattern;
u_int8_t fgcolor, bgcolor;
rasoff = scr->dispoffset + row * scr->type->ncols * fheight + col;
@@ -1225,7 +1224,7 @@
pattern = ((u_int8_t *)fs->font->data)[c * fheight + i];
/* When pattern is 0, skip output for speed-up. */
if (pattern != 0) {
- dummy = bus_space_read_1(memt, memh, rasoff2);
+ bus_space_read_1(memt, memh, rasoff2);
bus_space_write_1(memt, memh, rasoff2, pattern);
}
rasoff2 += scr->type->ncols;
@@ -1246,14 +1245,14 @@
pattern = ((u_int8_t *)fs->font->data)
[(c * fheight + i) * 2];
if (pattern != 0) {
- dummy = bus_space_read_1(memt, memh, rasoff2);
+ bus_space_read_1(memt, memh, rasoff2);
bus_space_write_1(memt, memh, rasoff2, pattern);
}
pattern = ((u_int8_t *)fs->font->data)
[(c * fheight + i) * 2 + 1];
if (pattern != 0) {
rasoff2++;
- dummy = bus_space_read_1(memt, memh, rasoff2);
+ bus_space_read_1(memt, memh, rasoff2);
bus_space_write_1(memt, memh, rasoff2, pattern);
rasoff2--;
}
Home |
Main Index |
Thread Index |
Old Index