mirror of
https://github.com/systemd/systemd
synced 2024-11-05 18:25:39 +00:00
234519ae6d
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)
14 lines
123 B
Text
14 lines
123 B
Text
@@
|
|
expression e;
|
|
statement s;
|
|
@@
|
|
- if (e == NULL)
|
|
+ if (!e)
|
|
s
|
|
@@
|
|
expression e;
|
|
statement s;
|
|
@@
|
|
- if (e != NULL)
|
|
+ if (e)
|
|
s
|