systemd/coccinelle
Zbigniew Jędrzejewski-Szmek 64903d18df basic/list: drop LIST_IS_EMPTY
This was a trivial wrapper that didn't provide any added value. With more
complicated structures like strvs, hashmaps, sets, and arrays, it is possible
to have an empty container. But in case of a list, the list is empty only when
the head is missing.

Also, we generally want the positive condition, so we replace many
if (!LIST_IS_EMPTY(x)) with just if (x).
2022-07-02 12:46:16 +02:00
..
bool-cast.cocci
close-above-stdio.cocci
cmp.cocci
const-strlen.disabled
debug-logging.cocci
div-round-up.cocci
dup-fcntl.cocci
empty-or-dash.cocci
empty-or-root.cocci
empty-to-null.cocci
empty-to-root.cocci
enotsup.cocci
equals-null.cocci
errno-check.cocci
errno.cocci
exit-0.cocci
flags-set.cocci
fopen-unlocked.cocci
free_and_replace.cocci
hashmap_free.cocci
htonl.cocci
in_set.cocci coccinelle: don't try to use IN_SET() in assert_cc() 2022-05-30 18:17:11 +02:00
iovec-make.cocci
isempty.cocci
log-json.cocci
macros.h basic/list: drop LIST_IS_EMPTY 2022-07-02 12:46:16 +02:00
malloc_multiply.cocci
mempcpy.cocci
memzero.cocci
mfree.cocci
mfree_return.cocci
no-if-assignments.cocci
not_in_set.cocci
o-ndelay.cocci
reallocarray.cocci
redundant-if.cocci
run-coccinelle.sh
safe_close-no-if.cocci
safe_close.cocci
safe_closedir.cocci
safe_fclose.cocci
sd_event_source_disable_unref.cocci
set_ensure_put.cocci
strdupa.cocci
strempty.cocci
strjoin.cocci
strjoina.cocci
strv_free.cocci
swap-two.cocci
synthetic-errno.cocci
take-fd.cocci
take-ptr.cocci
timestamp-is-set.cocci coccinelle: automatically look for timestamp_is_set candidates 2022-02-22 22:47:12 +01:00
while-true.cocci
xsprintf.cocci
zz-drop-braces.cocci