- Initialize freq variable so we will not end up with random value
if there is no YAMON present
This commit is contained in:
parent
a52b9ca1d3
commit
5f8ac85569
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user