Browse Source

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>
pull/35590/head
Maksim Masalski 4 years ago committed by Anas Nashif
parent
commit
d6c9d40ee0
  1. 2
      kernel/userspace.c

2
kernel/userspace.c

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

Loading…
Cancel
Save