kernel: userspace: fix typo in the comments
While reading the code, found some typos in the code comments, line 226 and 668. Fix comments to make it more solid. Signed-off-by: Naiyuan Tian <naiyuan.tian@intel.com>
This commit is contained in:
parent
2877bdcdfe
commit
bc3fda491f
1 changed files with 2 additions and 2 deletions
|
@ -223,7 +223,7 @@ static struct dyn_obj *dyn_object_find(void *obj)
|
|||
struct dyn_obj *ret;
|
||||
|
||||
/* For any dynamically allocated kernel object, the object
|
||||
* pointer is just a member of the conatining struct dyn_obj,
|
||||
* pointer is just a member of the containing struct dyn_obj,
|
||||
* so just a little arithmetic is necessary to locate the
|
||||
* corresponding struct rbnode
|
||||
*/
|
||||
|
@ -665,7 +665,7 @@ int z_object_validate(struct z_object *ko, enum k_objects otype,
|
|||
|
||||
/* Initialization state checks. _OBJ_INIT_ANY, we don't care */
|
||||
if (likely(init == _OBJ_INIT_TRUE)) {
|
||||
/* Object MUST be intialized */
|
||||
/* Object MUST be initialized */
|
||||
if (unlikely((ko->flags & K_OBJ_FLAG_INITIALIZED) == 0U)) {
|
||||
return -EINVAL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue