diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2019-01-02 11:19:30 +0100 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2019-02-07 21:35:32 +0100 |
commit | 60deebe6149a3f02fa6a9fa988dda500effda43f (patch) | |
tree | d455984fb042fa6d025f495d3ebd98d4559e4879 /arch/xtensa | |
parent | xtensa: drop unused definitions (diff) | |
download | linux-60deebe6149a3f02fa6a9fa988dda500effda43f.tar.xz linux-60deebe6149a3f02fa6a9fa988dda500effda43f.zip |
xtensa: simplify trap_init
Drop redundant 'fast &&' condition from the exception handler assignment
loop.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa')
-rw-r--r-- | arch/xtensa/kernel/traps.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/xtensa/kernel/traps.c b/arch/xtensa/kernel/traps.c index e6fa55aa1ccb..454d53096bc9 100644 --- a/arch/xtensa/kernel/traps.c +++ b/arch/xtensa/kernel/traps.c @@ -420,16 +420,15 @@ void __init trap_init(void) /* Setup specific handlers. */ for(i = 0; dispatch_init_table[i].cause >= 0; i++) { - int fast = dispatch_init_table[i].fast; int cause = dispatch_init_table[i].cause; void *handler = dispatch_init_table[i].handler; if (fast == 0) set_handler(default_handler, cause, handler); - if (fast && fast & USER) + if ((fast & USER) != 0) set_handler(fast_user_handler, cause, handler); - if (fast && fast & KRNL) + if ((fast & KRNL) != 0) set_handler(fast_kernel_handler, cause, handler); } |