mirror of
https://github.com/systemd/systemd.git
synced 2024-11-04 22:21:55 +03:00
525d3cc746
And set_free() too. Another Coccinelle patch.
55 lines
658 B
Plaintext
55 lines
658 B
Plaintext
@@
|
|
expression p;
|
|
@@
|
|
- set_free(p);
|
|
- p = NULL;
|
|
+ p = set_free(p);
|
|
@@
|
|
expression p;
|
|
@@
|
|
- if (p)
|
|
- set_free(p);
|
|
- p = NULL;
|
|
+ p = set_free(p);
|
|
@@
|
|
expression p;
|
|
@@
|
|
- if (p) {
|
|
- set_free(p);
|
|
- p = NULL;
|
|
- }
|
|
+ p = set_free(p);
|
|
@@
|
|
expression p;
|
|
@@
|
|
- if (p)
|
|
- set_free(p);
|
|
+ set_free(p);
|
|
@@
|
|
expression p;
|
|
@@
|
|
- hashmap_free(p);
|
|
- p = NULL;
|
|
+ p = hashmap_free(p);
|
|
@@
|
|
expression p;
|
|
@@
|
|
- if (p)
|
|
- hashmap_free(p);
|
|
- p = NULL;
|
|
+ p = hashmap_free(p);
|
|
@@
|
|
expression p;
|
|
@@
|
|
- if (p) {
|
|
- hashmap_free(p);
|
|
- p = NULL;
|
|
- }
|
|
+ p = hashmap_free(p);
|
|
@@
|
|
expression p;
|
|
@@
|
|
- if (p)
|
|
- hashmap_free(p);
|
|
+ hashmap_free(p);
|