zephyr/kernel
Flavio Ceolin 4218d5f8f0 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>
2018-09-18 13:57:15 -04:00
..
include ld: Put 'sizeof(struct device)' in the generated offsets header 2018-09-18 16:23:40 +02:00
alert.c syscalls: remove policy from handler checks 2018-05-17 23:34:03 +03:00
atomic_c.c
CMakeLists.txt kernel: Cmake: Add __ZEPHYR_SUPERVISOR__ macro for kernel files. 2018-05-15 17:48:18 +03:00
compiler_stack_protect.c kernel: add CODE_UNREACHABLE in _StackCheckHandler 2018-04-17 10:50:12 -07:00
device.c kernel; Checking functions return 2018-09-14 16:55:37 -04:00
errno.c kernel: userspace: reserve stack space to store local data 2018-08-17 09:40:52 -07:00
idle.c kernel: idle: Define _sys_soc_resume functions conditionally 2018-07-19 17:12:58 -04:00
init.c coccicnelle: Ignore return of memset 2018-09-14 16:55:37 -04:00
int_latency_bench.c
Kconfig kernel: event_logger: remove kernel_event_logger 2018-08-21 05:45:47 -07:00
Kconfig.power_mgmt doc: fix kconfig misspellings 2018-08-28 13:58:46 -04:00
mailbox.c kernel; Checking functions return 2018-09-14 16:55:37 -04:00
mem_domain.c coccicnelle: Ignore return of memset 2018-09-14 16:55:37 -04:00
mem_slab.c kernel: mem_slab: Reschedule in k_mem_slab_free only when necessary. 2018-05-18 20:16:50 +03:00
mempool.c kernel: Make If statement have essentially Boolean type 2018-09-18 13:57:15 -04:00
msg_q.c kernel: Make If statement have essentially Boolean type 2018-09-18 13:57:15 -04:00
mutex.c kernel: Make If statement have essentially Boolean type 2018-09-18 13:57:15 -04:00
pipes.c kernel: Make If statement have essentially Boolean type 2018-09-18 13:57:15 -04:00
poll.c kernel: Make If statement have essentially Boolean type 2018-09-18 13:57:15 -04:00
queue.c kernel: Make If statement have essentially Boolean type 2018-09-18 13:57:15 -04:00
sched.c kernel: Make If statement have essentially Boolean type 2018-09-18 13:57:15 -04:00
sem.c tracing: remove stray event_logger code 2018-09-05 16:05:08 -04:00
smp.c kernel; Checking functions return 2018-09-14 16:55:37 -04:00
stack.c kernel: Fix k_stack_alloc_init behavior 2018-09-13 13:20:13 -04:00
sys_clock.c kernel: Make If statement have essentially Boolean type 2018-09-18 13:57:15 -04:00
system_work_q.c
thread_abort.c kernel: Explicitly ignoring _Swap return 2018-09-14 16:55:37 -04:00
thread.c kernel: Explicitly check _abort_thread_timemout 2018-09-14 16:55:37 -04:00
timer.c kernel: Make If statement have essentially Boolean type 2018-09-18 13:57:15 -04:00
userspace_handler.c syscalls: remove policy from handler checks 2018-05-17 23:34:03 +03:00
userspace.c kernel: Make If statement have essentially Boolean type 2018-09-18 13:57:15 -04:00
version.c
work_q.c kernel: Make If statement have essentially Boolean type 2018-09-18 13:57:15 -04:00