Module Name: src
Committed By: martin
Date: Tue Jan 28 12:01:31 UTC 2014
Modified Files:
src/sys/arch/evbarm/iq80310: iq80310_intr.c iq80310_intr.h
Log Message:
Unused variable police
To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/sys/arch/evbarm/iq80310/iq80310_intr.c
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/evbarm/iq80310/iq80310_intr.h
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/evbarm/iq80310/iq80310_intr.c
diff -u src/sys/arch/evbarm/iq80310/iq80310_intr.c:1.32 src/sys/arch/evbarm/iq80310/iq80310_intr.c:1.33
--- src/sys/arch/evbarm/iq80310/iq80310_intr.c:1.32 Wed Oct 3 16:51:44 2012
+++ src/sys/arch/evbarm/iq80310/iq80310_intr.c Tue Jan 28 12:01:31 2014
@@ -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 @@ iq80310_intr_dispatch(struct trapframe *
{
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 @@ iq80310_intr_dispatch(struct trapframe *
irq = ffs(hwpend) - 1;
ibit = (1U << irq);
+#if 0
stray = 0;
+#endif
hwpend &= ~ibit;
Index: src/sys/arch/evbarm/iq80310/iq80310_intr.h
diff -u src/sys/arch/evbarm/iq80310/iq80310_intr.h:1.8 src/sys/arch/evbarm/iq80310/iq80310_intr.h:1.9
--- src/sys/arch/evbarm/iq80310/iq80310_intr.h:1.8 Sat Feb 14 12:44:20 2009
+++ src/sys/arch/evbarm/iq80310/iq80310_intr.h Tue Jan 28 12:01:31 2014
@@ -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 @@ static inline void __attribute__((__unus
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