mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-27 21:07:15 +00:00
ARM: MXS: fix Uninitialized variable error
cppcheck reports: [arch/arm/cpu/arm926ejs/mxs/timer.c:96]: (error) Uninitialized variable: now Signed-off-by: Wolfgang Denk <wd@denx.de> Cc: Marek Vasut <marex@denx.de> Cc: Stefano Babic <sbabic@denx.de>
This commit is contained in:
parent
cc87d18a6e
commit
feb8cf4a1b
1 changed files with 2 additions and 0 deletions
|
@ -91,6 +91,8 @@ unsigned long long get_ticks(void)
|
||||||
TIMROT_RUNNING_COUNTn_RUNNING_COUNT_OFFSET;
|
TIMROT_RUNNING_COUNTn_RUNNING_COUNT_OFFSET;
|
||||||
#elif defined(CONFIG_MX28)
|
#elif defined(CONFIG_MX28)
|
||||||
now = readl(&timrot_regs->hw_timrot_running_count0);
|
now = readl(&timrot_regs->hw_timrot_running_count0);
|
||||||
|
#else
|
||||||
|
#error "Don't know how to read timrot_regs"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (lastdec >= now) {
|
if (lastdec >= now) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue