commit | c806ac3d36691fcae8c7af87dda2a43621efcb35 | [log] [tgz] |
---|---|---|
author | Flavio Ceolin <flavio.ceolin@intel.com> | Mon Sep 17 16:03:52 2018 -0700 |
committer | Anas Nashif <anas.nashif@intel.com> | Tue Sep 18 13:57:15 2018 -0400 |
tree | 50cb77ecfbe843f25296a04c24363209ebe2768b | |
parent | b3d92027049024897e98a80f089fb07883211e3e [diff] |
kernel: Compare pointers with NULL in while statements Make while 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>