Module Name: src
Committed By: maxv
Date: Thu Mar 6 19:46:28 UTC 2014
Modified Files:
src/sys/arch/arm/ep93xx: epclk.c
Log Message:
Fix uninitialized variable. Found by my code scanner.
ok christos@
To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/arch/arm/ep93xx/epclk.c
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/arm/ep93xx/epclk.c
diff -u src/sys/arch/arm/ep93xx/epclk.c:1.20 src/sys/arch/arm/ep93xx/epclk.c:1.21
--- src/sys/arch/arm/ep93xx/epclk.c:1.20 Mon Nov 12 18:00:36 2012
+++ src/sys/arch/arm/ep93xx/epclk.c Thu Mar 6 19:46:27 2014
@@ -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 @@ epclk_attach(device_t parent, device_t s
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))