Use boolean macro in kernel.c
Merge pull request #2286 from suzukaze/refactor-kernel

Use boolean macro in kernel.c