kernel: syscall: Explicitly ignoring not used return
Some syscacll return value through parameters and for these functions the return of _arch_syscall_invoke* are not used. MISRA requires that all return values be checked. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
a1135620ba
commit
91b6123932
2 changed files with 5 additions and 3 deletions
|
@ -249,7 +249,7 @@ static inline u64_t _syscall_ret64_invoke0(u32_t call_id)
|
|||
{
|
||||
u64_t ret;
|
||||
|
||||
_arch_syscall_invoke1((u32_t)&ret, call_id);
|
||||
(void)_arch_syscall_invoke1((u32_t)&ret, call_id);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -257,7 +257,7 @@ static inline u64_t _syscall_ret64_invoke1(u32_t arg1, u32_t call_id)
|
|||
{
|
||||
u64_t ret;
|
||||
|
||||
_arch_syscall_invoke2(arg1, (u32_t)&ret, call_id);
|
||||
(void)_arch_syscall_invoke2(arg1, (u32_t)&ret, call_id);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -266,7 +266,7 @@ static inline u64_t _syscall_ret64_invoke2(u32_t arg1, u32_t arg2,
|
|||
{
|
||||
u64_t ret;
|
||||
|
||||
_arch_syscall_invoke3(arg1, arg2, (u32_t)&ret, call_id);
|
||||
(void)_arch_syscall_invoke3(arg1, arg2, (u32_t)&ret, call_id);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue