1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-02 02:21:44 +03:00
systemd/coccinelle
Zbigniew Jędrzejewski-Szmek 5d904a6aaa tree-wide: drop !! casts to booleans
They are not needed, because anything that is non-zero is converted
to true.

C11:
> 6.3.1.2: When any scalar value is converted to _Bool, the result is 0 if the
> value compares equal to 0; otherwise, the result is 1.

https://stackoverflow.com/questions/31551888/casting-int-to-bool-in-c-c
2018-06-13 10:52:40 +02:00
..
bool-cast.cocci tree-wide: drop !! casts to booleans 2018-06-13 10:52:40 +02:00
close-above-stdio.cocci
const-strlen.cocci
debug-logging.cocci
div-round-up.cocci
dup-fcntl.cocci
empty-or-root.cocci
empty-to-null.cocci
enotsup.cocci
equals-null.cocci
errno.cocci
exit-0.cocci
flags-set.cocci
free_and_replace.cocci
hashmap_free.cocci
htonl.cocci
in_set.cocci
isempty.cocci
malloc_multiply.cocci
memzero.cocci
mfree_return.cocci
mfree.cocci
no-if-assignments.cocci
not_in_set.cocci
o-ndelay.cocci
reallocarray.cocci
run-coccinelle.sh
safe_close-no-if.cocci
safe_close.cocci
safe_closedir.cocci
safe_fclose.cocci
strempty.cocci
strjoin.cocci
strjoina.cocci
strv_free.cocci
take-fd.cocci
take-ptr.cocci
while-true.cocci
xsprintf.cocci