mirror of
https://github.com/systemd/systemd.git
synced 2024-12-27 07:22:31 +03: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)
15 lines
123 B
Plaintext
15 lines
123 B
Plaintext
@@
|
|
expression e;
|
|
statement s;
|
|
@@
|
|
- if (e == NULL)
|
|
+ if (!e)
|
|
s
|
|
@@
|
|
expression e;
|
|
statement s;
|
|
@@
|
|
- if (e != NULL)
|
|
+ if (e)
|
|
s
|