kernel: syscall: Object validation checks boolean statement
The function that checks if an object is valid is essentially a boolean function. Just changing its return type to reflect it. MISRA-C rule 14.4 Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
80418602ed
commit
b7287ceb4e
1 changed files with 2 additions and 2 deletions
|
@ -411,8 +411,8 @@ static inline int _obj_validation_check(struct _k_object *ko,
|
|||
|
||||
#define Z_SYSCALL_IS_OBJ(ptr, type, init) \
|
||||
Z_SYSCALL_VERIFY_MSG( \
|
||||
!_obj_validation_check(_k_object_find((void *)ptr), (void *)ptr, \
|
||||
type, init), "access denied")
|
||||
_obj_validation_check(_k_object_find((void *)ptr), (void *)ptr, \
|
||||
type, init) == 0, "access denied")
|
||||
|
||||
/**
|
||||
* @brief Runtime check driver object pointer for presence of operation
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue