Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/macppc/dev remove unused variables.
details: https://anonhg.NetBSD.org/src/rev/277d3477e46d
branches: trunk
changeset: 345376:277d3477e46d
user: chs <chs%NetBSD.org@localhost>
date: Mon May 23 01:45:41 2016 +0000
description:
remove unused variables.
diffstat:
sys/arch/macppc/dev/ofb.c | 11 ++++-------
1 files changed, 4 insertions(+), 7 deletions(-)
diffs (48 lines):
diff -r a3b3f50a7d52 -r 277d3477e46d sys/arch/macppc/dev/ofb.c
--- a/sys/arch/macppc/dev/ofb.c Sun May 22 23:54:20 2016 +0000
+++ b/sys/arch/macppc/dev/ofb.c Mon May 23 01:45:41 2016 +0000
@@ -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 @@
{
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 @@
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 @@
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],
Home |
Main Index |
Thread Index |
Old Index