Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/ep93xx Fix uninitialized variable. Found by my ...
details: https://anonhg.NetBSD.org/src/rev/e9226fd9a386
branches: trunk
changeset: 794141:e9226fd9a386
user: maxv <maxv%NetBSD.org@localhost>
date: Thu Mar 06 19:46:27 2014 +0000
description:
Fix uninitialized variable. Found by my code scanner.
ok christos@
diffstat:
sys/arch/arm/ep93xx/epclk.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 4ad0544b624d -r e9226fd9a386 sys/arch/arm/ep93xx/epclk.c
--- a/sys/arch/arm/ep93xx/epclk.c Thu Mar 06 19:44:32 2014 +0000
+++ b/sys/arch/arm/ep93xx/epclk.c Thu Mar 06 19:46:27 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: epclk.c,v 1.20 2012/11/12 18:00:36 skrll Exp $ */
+/* $NetBSD: epclk.c,v 1.21 2014/03/06 19:46:27 maxv Exp $ */
/*
* Copyright (c) 2004 Jesse Off
@@ -40,7 +40,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: epclk.c,v 1.20 2012/11/12 18:00:36 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: epclk.c,v 1.21 2014/03/06 19:46:27 maxv Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -139,7 +139,8 @@
if (epclk_sc == NULL) {
first_run = true;
epclk_sc = sc;
- }
+ } else
+ first_run = false;
if (bus_space_map(sa->sa_iot, sa->sa_addr, sa->sa_size,
0, &sc->sc_ioh))
Home |
Main Index |
Thread Index |
Old Index