mirror of
https://github.com/systemd/systemd
synced 2024-11-05 18:25:39 +00:00
525d3cc746
And set_free() too. Another Coccinelle patch.
54 lines
658 B
Text
54 lines
658 B
Text
@@
|
|
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);
|