Skip to content

Commit d6c9d40

Browse files
Maksim Masalskinashif
authored andcommitted
userspace: remove dead code
File userspace.c contains dead code in function char *otype_to_str() Remove "return NULL" and replace with "ret = NULL". Found as a coding guideline violation (MISRA R2.1) by static coding scanning tool. Signed-off-by: Maksim Masalski <[email protected]>
1 parent ae4fb20 commit d6c9d40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/userspace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ const char *otype_to_str(enum k_objects otype)
8181
}
8282
#else
8383
ARG_UNUSED(otype);
84-
return NULL;
84+
ret = NULL;
8585
#endif
8686
return ret;
8787
}

0 commit comments

Comments
 (0)