mirror of
https://github.com/systemd/systemd.git
synced 2024-12-28 11:21:59 +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);
|