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)
This commit is contained in:
Lennart Poettering
2017-12-11 16:05:40 +01:00
parent 4a0e9289bf
commit 234519ae6d
15 changed files with 37 additions and 23 deletions
+1 -1
View File
@@ -538,7 +538,7 @@ bool paths_check_timestamp(const char* const* paths, usec_t *timestamp, bool upd
assert(timestamp);
if (paths == NULL)
if (!paths)
return false;
STRV_FOREACH(i, paths) {