diff options
author | gonzo <gonzo@FreeBSD.org> | 2013-08-27 01:08:55 +0000 |
---|---|---|
committer | gonzo <gonzo@FreeBSD.org> | 2013-08-27 01:08:55 +0000 |
commit | 5f8ac855694c0f2266dab9f85530b4a331b47ed2 (patch) | |
tree | 522737c71c9b938064b32b410559bb9a6aeb7ab0 | |
parent | a52b9ca1d3093315714bdb9c80d6cc06215837a0 (diff) | |
download | FreeBSD-src-5f8ac855694c0f2266dab9f85530b4a331b47ed2.zip FreeBSD-src-5f8ac855694c0f2266dab9f85530b4a331b47ed2.tar.gz |
- Initialize freq variable so we will not end up with random value
if there is no YAMON present
-rw-r--r-- | sys/mips/malta/yamon.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/mips/malta/yamon.c b/sys/mips/malta/yamon.c index 4e167cb..e669bfe 100644 --- a/sys/mips/malta/yamon.c +++ b/sys/mips/malta/yamon.c @@ -56,6 +56,7 @@ yamon_getcpufreq(void) uint32_t freq; int ret; + freq = 0; ret = YAMON_SYSCON_READ(SYSCON_BOARD_CPU_CLOCK_FREQ_ID, &freq, sizeof(freq)); if (ret != 0) |