From d6c9d40ee062f7dd1f8edae461e21c8fe88824db Mon Sep 17 00:00:00 2001 From: Maksim Masalski Date: Mon, 24 May 2021 16:30:32 +0800 Subject: [PATCH] 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 --- kernel/userspace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/userspace.c b/kernel/userspace.c index 98f3913df96..5fcfa75048f 100644 --- a/kernel/userspace.c +++ b/kernel/userspace.c @@ -81,7 +81,7 @@ const char *otype_to_str(enum k_objects otype) } #else ARG_UNUSED(otype); - return NULL; + ret = NULL; #endif return ret; }