kernel: avoid Boolean-to-integer type casts

Avoid casting expression to an inappropriate essential type.

Signed-off-by: frei tycho <tfrei@baumer.com>
1 file changed