arm,smc: switch statement cleanup
No change to behaviour, the commit just makes sure all cases are explicitly listed instead of falling through to default. Signed-off-by: Gerwin Klein <gerwin.klein@proofcraft.systems>
This commit is contained in:
parent
d2341c88d9
commit
100f76565f
1 changed files with 8 additions and 0 deletions
|
|
@ -148,6 +148,10 @@ static inline bool_t CONST cap_get_archCapIsPhysical(cap_t cap)
|
|||
case cap_sgi_signal_cap:
|
||||
return false;
|
||||
#endif
|
||||
#ifdef CONFIG_ALLOW_SMC_CALLS
|
||||
case cap_smc_cap:
|
||||
return false;
|
||||
#endif
|
||||
|
||||
default:
|
||||
/* Unreachable, but GCC can't figure that out */
|
||||
|
|
@ -185,6 +189,10 @@ static inline void *CONST cap_get_archCapPtr(cap_t cap)
|
|||
case cap_sgi_signal_cap:
|
||||
return NULL;
|
||||
#endif
|
||||
#ifdef CONFIG_ALLOW_SMC_CALLS
|
||||
case cap_smc_cap:
|
||||
return NULL;
|
||||
#endif
|
||||
|
||||
default:
|
||||
/* Unreachable, but GCC can't figure that out */
|
||||
|
|
|
|||
Loading…
Reference in a new issue