Module Name:    src
Committed By:   mlelstv
Date:           Fri Apr 18 22:02:44 UTC 2014

Modified Files:
        src/sys/dev/ic: vga_raster.c

Log Message:
more unused variables.


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/sys/dev/ic/vga_raster.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/ic/vga_raster.c
diff -u src/sys/dev/ic/vga_raster.c:1.39 src/sys/dev/ic/vga_raster.c:1.40
--- src/sys/dev/ic/vga_raster.c:1.39	Fri Apr 18 21:45:22 2014
+++ src/sys/dev/ic/vga_raster.c	Fri Apr 18 22:02:44 2014
@@ -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 @@ vga_set_mode(struct vga_handle *vh, stru
 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 @@ _vga_raster_putchar(void *id, int row, i
 	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 @@ _vga_raster_putchar(void *id, int row, i
 			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 @@ _vga_raster_putchar(void *id, int row, i
 			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--;
 			}

Reply via email to