Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbarm/iq80310 Unused variable police
details: https://anonhg.NetBSD.org/src/rev/f37d6211fb63
branches: trunk
changeset: 793129:f37d6211fb63
user: martin <martin%NetBSD.org@localhost>
date: Tue Jan 28 12:01:31 2014 +0000
description:
Unused variable police
diffstat:
sys/arch/evbarm/iq80310/iq80310_intr.c | 11 ++++++++---
sys/arch/evbarm/iq80310/iq80310_intr.h | 4 +---
2 files changed, 9 insertions(+), 6 deletions(-)
diffs (65 lines):
diff -r f12bfa186a39 -r f37d6211fb63 sys/arch/evbarm/iq80310/iq80310_intr.c
--- a/sys/arch/evbarm/iq80310/iq80310_intr.c Tue Jan 28 10:54:45 2014 +0000
+++ b/sys/arch/evbarm/iq80310/iq80310_intr.c Tue Jan 28 12:01:31 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: iq80310_intr.c,v 1.32 2012/10/03 16:51:44 chs Exp $ */
+/* $NetBSD: iq80310_intr.c,v 1.33 2014/01/28 12:01:31 martin Exp $ */
/*
* Copyright (c) 2001, 2002 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: iq80310_intr.c,v 1.32 2012/10/03 16:51:44 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: iq80310_intr.c,v 1.33 2014/01/28 12:01:31 martin Exp $");
#ifndef EVBARM_SPL_NOINLINE
#define EVBARM_SPL_NOINLINE
@@ -419,10 +419,13 @@
{
struct intrq *iq;
struct intrhand *ih;
- int oldirqstate, pcpl, irq, ibit, hwpend, rv, stray;
+ int oldirqstate, pcpl, irq, ibit, hwpend, rv;
struct cpu_info * const ci = curcpu();
+#if 0
+ int stray;
stray = 1;
+#endif
/* First, disable external IRQs. */
i80200_intr_disable(INTCTL_IM | INTCTL_PM);
@@ -433,7 +436,9 @@
irq = ffs(hwpend) - 1;
ibit = (1U << irq);
+#if 0
stray = 0;
+#endif
hwpend &= ~ibit;
diff -r f12bfa186a39 -r f37d6211fb63 sys/arch/evbarm/iq80310/iq80310_intr.h
--- a/sys/arch/evbarm/iq80310/iq80310_intr.h Tue Jan 28 10:54:45 2014 +0000
+++ b/sys/arch/evbarm/iq80310/iq80310_intr.h Tue Jan 28 12:01:31 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: iq80310_intr.h,v 1.8 2009/02/14 12:44:20 he Exp $ */
+/* $NetBSD: iq80310_intr.h,v 1.9 2014/01/28 12:01:31 martin Exp $ */
/*
* Copyright (c) 2001, 2002 Wasabi Systems, Inc.
@@ -90,12 +90,10 @@
iq80310_splx(int new)
{
extern volatile int iq80310_ipending;
- int old;
/* Don't let the compiler re-order this code with preceding code */
__insn_barrier();
- old = curcpl();
set_curcpl(new);
#ifdef __HAVE_FAST_SOFTINTS
Home |
Main Index |
Thread Index |
Old Index