commit | 4218d5f8f04795c9508c36d51b0b1179ba57b7c4 | [log] [tgz] |
---|---|---|
author | Flavio Ceolin <flavio.ceolin@intel.com> | Mon Sep 17 09:39:51 2018 -0700 |
committer | Anas Nashif <anas.nashif@intel.com> | Tue Sep 18 13:57:15 2018 -0400 |
tree | ea6437034bc57f27c5f5c784f30422288cb409c8 | |
parent | 0ff2ae1fe8318cd00daa4d8af916c67ce05e12b1 [diff] |
kernel: Make If statement have essentially Boolean type Make if statement using pointers explicitly check whether the value is NULL or not. The C standard does not say that the null pointer is the same as the pointer to memory address 0 and because of this is a good practice always compare with the macro NULL. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>