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 <maksim.masalski@intel.com>
This commit is contained in:
Maksim Masalski 2021-05-24 16:30:32 +08:00 committed by Anas Nashif
commit d6c9d40ee0

View file

@ -81,7 +81,7 @@ const char *otype_to_str(enum k_objects otype)
} }
#else #else
ARG_UNUSED(otype); ARG_UNUSED(otype);
return NULL; ret = NULL;
#endif #endif
return ret; return ret;
} }