Skip to content

Commit bc3fda4

Browse files
naiyuantiancfriedt
authored andcommitted
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 <[email protected]>
1 parent 2877bdc commit bc3fda4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kernel/userspace.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ static struct dyn_obj *dyn_object_find(void *obj)
223223
struct dyn_obj *ret;
224224

225225
/* For any dynamically allocated kernel object, the object
226-
* pointer is just a member of the conatining struct dyn_obj,
226+
* pointer is just a member of the containing struct dyn_obj,
227227
* so just a little arithmetic is necessary to locate the
228228
* corresponding struct rbnode
229229
*/
@@ -665,7 +665,7 @@ int z_object_validate(struct z_object *ko, enum k_objects otype,
665665

666666
/* Initialization state checks. _OBJ_INIT_ANY, we don't care */
667667
if (likely(init == _OBJ_INIT_TRUE)) {
668-
/* Object MUST be intialized */
668+
/* Object MUST be initialized */
669669
if (unlikely((ko->flags & K_OBJ_FLAG_INITIALIZED) == 0U)) {
670670
return -EINVAL;
671671
}

0 commit comments

Comments
 (0)