Module Name: src
Committed By: chs
Date: Mon May 23 01:45:41 UTC 2016
Modified Files:
src/sys/arch/macppc/dev: ofb.c
Log Message:
remove unused variables.
To generate a diff of this commit:
cvs rdiff -u -r1.69 -r1.70 src/sys/arch/macppc/dev/ofb.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/arch/macppc/dev/ofb.c
diff -u src/sys/arch/macppc/dev/ofb.c:1.69 src/sys/arch/macppc/dev/ofb.c:1.70
--- src/sys/arch/macppc/dev/ofb.c:1.69 Sat Oct 27 17:18:00 2012
+++ src/sys/arch/macppc/dev/ofb.c Mon May 23 01:45:41 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: ofb.c,v 1.69 2012/10/27 17:18:00 chs Exp $ */
+/* $NetBSD: ofb.c,v 1.70 2016/05/23 01:45:41 chs Exp $ */
/*
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ofb.c,v 1.69 2012/10/27 17:18:00 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ofb.c,v 1.70 2016/05/23 01:45:41 chs Exp $");
#include <sys/param.h>
#include <sys/buf.h>
@@ -317,7 +317,6 @@ ofb_mmap(void *v, void *vs, off_t offset
{
struct vcons_data *vd = v;
struct ofb_softc *sc = vd->cookie;
- struct rasops_info *ri;
u_int32_t *ap = sc->sc_addrs;
int i;
@@ -326,8 +325,6 @@ ofb_mmap(void *v, void *vs, off_t offset
return -1;
}
- ri = &vd->active->scr_ri;
-
/* framebuffer at offset 0 */
if ((offset >= 0) && (offset < sc->sc_fbsize))
return bus_space_mmap(sc->sc_memt, sc->sc_fbaddr, offset, prot,
@@ -444,10 +441,10 @@ ofb_putpalreg(struct ofb_softc *sc, int
static void
ofb_init_cmap(struct ofb_softc *sc)
{
- int idx, i;
+ int i;
+
/* mess with the palette only when we're running in 8 bit */
if (rascons_console_screen.scr_ri.ri_depth == 8) {
- idx = 0;
for (i = 0; i < 256; i++) {
ofb_putpalreg(sc, i, rasops_cmap[(i * 3) + 0],
rasops_cmap[(i * 3) + 1],