1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-07 01:27:11 +03:00
systemd/coccinelle
Lennart Poettering 234519ae6d tree-wide: drop a few == NULL and != NULL comparison
Our CODING_STYLE suggests not comparing with NULL, but relying on C's
downgrade-to-bool feature for that. Fix up some code to match these
guidelines. (This is not comprehensive, the coccinelle output for this
is unfortunately kinda borked)
2017-12-11 16:05:40 +01:00
..
empty-if.cocci
empty-to-null.cocci core: use empty_to_null() where we can 2017-12-07 12:13:00 +01:00
equals-null.cocci tree-wide: drop a few == NULL and != NULL comparison 2017-12-11 16:05:40 +01:00
errno.cocci
free_and_replace.cocci tree-wide: introduce free_and_replace helper 2016-10-16 23:35:39 -04:00
hashmap_free.cocci
htonl.cocci tree-wide: htonl() is weird, let's use htobe32() instead (#3538) 2016-06-15 01:26:01 +02:00
in_set.cocci coccinelle: fix IN_SET/!IN_SET scripts, and apply some changes it found 2017-11-29 20:12:26 +01:00
isempty.cocci tree-wide: use strv_isempty() instead of strv_length() == 0 2017-11-29 12:41:08 +01:00
mfree_return.cocci tree-wide: use mfree more 2016-10-16 23:35:39 -04:00
mfree.cocci
no-if-assignments.cocci
not_in_set.cocci coccinelle: fix IN_SET/!IN_SET scripts, and apply some changes it found 2017-11-29 20:12:26 +01:00
run-coccinelle.sh coccinelle: improve run-coccinelle.sh to take list of scripts to run 2017-12-07 12:11:13 +01:00
safe_close-no-if.cocci
safe_close.cocci
safe_closedir.cocci
safe_fclose.cocci
strempty.cocci
strjoin.cocci tree-wide: drop NULL sentinel from strjoin 2016-10-23 11:43:27 -04:00
strjoina.cocci tree-wide: remove useless NULLs from strjoina 2016-04-13 08:56:44 -04:00
strv_free.cocci
while-true.cocci
xsprintf.cocci