Commit 2a7c80cc authored by Mark Charlebois's avatar Mark Charlebois Committed by Behan Webster
Browse files

unhandled else in arch_timer_reg_read_cp15



Clang complains about return value being undefined which could happen if enum
value was corrupted.

Author: Mark Charlebois <charlebm@gmail.com>
Signed-off-by: default avatarMark Charlebois <charlebm@gmail.com>
parent 88dcf78a
......@@ -80,6 +80,8 @@ u32 arch_timer_reg_read_cp15(int access, enum arch_timer_reg reg)
asm volatile("mrs %0, cntv_tval_el0" : "=r" (val));
break;
}
} else {
BUG();
}
return (u32)val;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment