Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hpcmips/tx Remove set-but-not-used variable bit8.
details: https://anonhg.NetBSD.org/src/rev/142065f0a700
branches: trunk
changeset: 329765:142065f0a700
user: he <he%NetBSD.org@localhost>
date: Sat Jun 07 18:59:16 2014 +0000
description:
Remove set-but-not-used variable bit8.
diffstat:
sys/arch/hpcmips/tx/tx3912video.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diffs (36 lines):
diff -r 1cd6094c83f4 -r 142065f0a700 sys/arch/hpcmips/tx/tx3912video.c
--- a/sys/arch/hpcmips/tx/tx3912video.c Sat Jun 07 16:37:32 2014 +0000
+++ b/sys/arch/hpcmips/tx/tx3912video.c Sat Jun 07 18:59:16 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tx3912video.c,v 1.42 2012/10/27 17:17:54 chs Exp $ */
+/* $NetBSD: tx3912video.c,v 1.43 2014/06/07 18:59:16 he Exp $ */
/*-
* Copyright (c) 1999-2002 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tx3912video.c,v 1.42 2012/10/27 17:17:54 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tx3912video.c,v 1.43 2014/06/07 18:59:16 he Exp $");
#define TX3912VIDEO_DEBUG
@@ -434,7 +434,7 @@
void
tx3912video_resolution_init(struct video_chip *chip)
{
- int h, v, split, bit8, horzval, lineval;
+ int h, v, split, horzval, lineval;
tx_chipset_tag_t tc = chip->vc_v;
txreg_t reg;
u_int32_t val;
@@ -443,8 +443,6 @@
v = chip->vc_fbheight;
reg = tx_conf_read(tc, TX3912_VIDEOCTRL1_REG);
split = reg & TX3912_VIDEOCTRL1_DISPSPLIT;
- bit8 = (TX3912_VIDEOCTRL1_BITSEL(reg) ==
- TX3912_VIDEOCTRL1_BITSEL_8BITCOLOR);
val = TX3912_VIDEOCTRL1_BITSEL(reg);
if ((val == TX3912_VIDEOCTRL1_BITSEL_8BITCOLOR) && !split) {
Home |
Main Index |
Thread Index |
Old Index