Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/gemini Remove an unused variable and fix a copy...
details: https://anonhg.NetBSD.org/src/rev/76b7123aabe5
branches: trunk
changeset: 327484:76b7123aabe5
user: martin <martin%NetBSD.org@localhost>
date: Sun Mar 09 10:33:23 2014 +0000
description:
Remove an unused variable and fix a copy&pasto (I think)
diffstat:
sys/arch/arm/gemini/gemini_timer.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diffs (38 lines):
diff -r b85a019653fd -r 76b7123aabe5 sys/arch/arm/gemini/gemini_timer.c
--- a/sys/arch/arm/gemini/gemini_timer.c Sun Mar 09 10:18:30 2014 +0000
+++ b/sys/arch/arm/gemini/gemini_timer.c Sun Mar 09 10:33:23 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gemini_timer.c,v 1.5 2011/07/01 19:32:28 dyoung Exp $ */
+/* $NetBSD: gemini_timer.c,v 1.6 2014/03/09 10:33:23 martin Exp $ */
/* adapted from:
* NetBSD: omap2_geminitmr.c,v 1.1 2008/08/27 11:03:10 matt Exp
@@ -81,7 +81,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gemini_timer.c,v 1.5 2011/07/01 19:32:28 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gemini_timer.c,v 1.6 2014/03/09 10:33:23 martin Exp $");
#include "opt_gemini.h"
#include "opt_cpuoptions.h"
@@ -257,9 +257,7 @@
static void
timer_init(geminitmr_softc_t *sc, int schz, boolean_t autoload, boolean_t intr)
{
- int psw;
-
- psw = disable_interrupts(I32_bit);
+ disable_interrupts(I32_bit);
timer_factors(sc, schz, autoload);
_timer_stop(sc);
_timer_intr_dis(sc);
@@ -267,7 +265,7 @@
if (intr)
_timer_intr_enb(sc);
_timer_start(sc);
- psw = disable_interrupts(I32_bit);
+ enable_interrupts(I32_bit);
}
void
Home |
Main Index |
Thread Index |
Old Index