Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/omap Deal with unused variables.
details: https://anonhg.NetBSD.org/src/rev/a9e1f24c3c8a
branches: trunk
changeset: 325323:a9e1f24c3c8a
user: skrll <skrll%NetBSD.org@localhost>
date: Wed Dec 18 12:54:01 2013 +0000
description:
Deal with unused variables.
diffstat:
sys/arch/arm/omap/omapfb.c | 14 ++++++--------
1 files changed, 6 insertions(+), 8 deletions(-)
diffs (51 lines):
diff -r 24bd3a3717cc -r a9e1f24c3c8a sys/arch/arm/omap/omapfb.c
--- a/sys/arch/arm/omap/omapfb.c Wed Dec 18 12:53:26 2013 +0000
+++ b/sys/arch/arm/omap/omapfb.c Wed Dec 18 12:54:01 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: omapfb.c,v 1.24 2013/06/09 05:52:04 kiyohara Exp $ */
+/* $NetBSD: omapfb.c,v 1.25 2013/12/18 12:54:01 skrll Exp $ */
/*
* Copyright (c) 2010 Michael Lorenz
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: omapfb.c,v 1.24 2013/06/09 05:52:04 kiyohara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: omapfb.c,v 1.25 2013/12/18 12:54:01 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -189,7 +189,7 @@
unsigned long defattr;
bool is_console = false;
uint32_t sz, reg;
- int segs, i, j, adr;
+ int segs, i, j;
sc->sc_iot = obio->obio_iot;
sc->sc_dev = self;
@@ -378,9 +378,9 @@
OMAP_DSSCTRL_DAC_DEMEN);
#endif
+#if 0
/* VENC to NTSC mode */
- adr = OMAPFB_VENC_F_CONTROL;
-#if 0
+ int adr = OMAPFB_VENC_F_CONTROL;
for (i = 0; i < __arraycount(venc_mode_ntsc); i++) {
bus_space_write_4(sc->sc_iot, sc->sc_regh, adr,
venc_mode_ntsc[i]);
@@ -981,10 +981,8 @@
struct rasops_info *ri = cookie;
struct vcons_screen *scr = ri->ri_hw;
struct omapfb_softc *sc = scr->scr_cookie;
- int wi, he, pos;
+ int pos;
- wi = ri->ri_font->fontwidth;
- he = ri->ri_font->fontheight;
pos = col + row * ri->ri_cols;
#ifdef WSDISPLAY_SCROLLSUPPORT
pos += scr->scr_offset_to_zero;
Home |
Main Index |
Thread Index |
Old Index