mirror of
https://github.com/systemd/systemd.git
synced 2024-11-24 02:33:36 +08: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
|