]> git.ipfire.org Git - thirdparty/systemd.git/blob - coccinelle/strv_free.cocci
Merge the "boot loader specification" wiki page
[thirdparty/systemd.git] / coccinelle / strv_free.cocci
1 @@
2 expression p;
3 @@
4 - strv_free(p);
5 - p = NULL;
6 + p = strv_free(p);
7 @@
8 expression p;
9 @@
10 - if (p)
11 - strv_free(p);
12 - p = NULL;
13 + p = strv_free(p);
14 @@
15 expression p;
16 @@
17 - if (p) {
18 - strv_free(p);
19 - p = NULL;
20 - }
21 + p = strv_free(p);
22 @@
23 expression p;
24 @@
25 - if (p)
26 - strv_free(p);
27 + strv_free(p);