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:
parent
6d50df212f
commit
f342019986
8 changed files with 29 additions and 28 deletions
|
@ -107,7 +107,7 @@ static inline void log_backend_dropped(const struct log_backend *const backend,
|
|||
{
|
||||
__ASSERT_NO_MSG(backend);
|
||||
|
||||
if (backend->api->dropped) {
|
||||
if (backend->api->dropped != NULL) {
|
||||
backend->api->dropped(backend, cnt);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue