From bc3fda491fa7f9b56ffb6e867c0441e80187a9e5 Mon Sep 17 00:00:00 2001 From: Naiyuan Tian Date: Mon, 23 Aug 2021 23:32:58 +0800 Subject: [PATCH] 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 --- kernel/userspace.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/userspace.c b/kernel/userspace.c index 5fcfa75048f..84550863111 100644 --- a/kernel/userspace.c +++ b/kernel/userspace.c @@ -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; }