log: Make statements evaluate boolean expressions

MISRA-C requires that the if statement has essentially Boolean type.

MISRA-C rule 14.4

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
Flavio Ceolin 2018-12-17 11:33:10 -08:00 committed by Anas Nashif
commit f342019986
8 changed files with 29 additions and 28 deletions

View file

@ -128,7 +128,7 @@ static int line_out_drop_mode(void)
line_buf, line_pos - line_buf + 1);
RTT_UNLOCK();
if (!ret) {
if (ret == 0) {
drop_cnt++;
return 0;
}