Skip to content
Commit 366de7a8 authored by Maksim Masalski's avatar Maksim Masalski Committed by Kumar Gala
Browse files

logging: z_vrfy_log_filter_set: remove extra check



Variable "level" in function z_vrfy_log_filter_set() has type unsigned.
But it is been checked if "level >=LOG_LEVEL_NONE" and
LOG_LEVEL_NONE is 0. It means check if unsigned is ">= 0" in Z_OOPS().
That is logically wrong, because unsigned is ">=0" by default.
Remove that check, to avoid static analysis tool raise
violation

Found as a coding guideline violation (MISRA R14.3) by static
coding scanning tool.

Signed-off-by: default avatarMaksim Masalski <maksim.masalski@intel.com>
parent 8b12311b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment