kernel: Explicitly comparing pointer with NULL
MISRA-C rule: 14.4 Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
92ea2f9189
commit
ea716bf023
11 changed files with 17 additions and 16 deletions
|
@ -347,7 +347,7 @@ static inline struct log_msg *_log_msg_std_alloc(void)
|
|||
{
|
||||
struct log_msg *msg = (struct log_msg *)log_msg_chunk_alloc();
|
||||
|
||||
if (msg) {
|
||||
if (msg != NULL) {
|
||||
/* all fields reset to 0, reference counter to 1 */
|
||||
msg->hdr.ref_cnt = 1;
|
||||
msg->hdr.params.raw = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue