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 <>
Signed-off-by: default avatarMark Charlebois <>
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));
} else {
return (u32)val;
Supports Markdown
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