mirror of
https://github.com/systemd/systemd
synced 2024-09-06 16:56:43 +00:00
![Lennart Poettering](/assets/img/avatar_default.png)
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
|