]> git.ipfire.org Git - thirdparty/systemd.git/blob - coccinelle/isempty.cocci
Merge pull request #10174 from poettering/sd-boot-counter-efi
[thirdparty/systemd.git] / coccinelle / isempty.cocci
1 @@
2 expression s;
3 @@
4 - strv_length(s) == 0
5 + strv_isempty(s)
6 @@
7 expression s;
8 @@
9 - strv_length(s) <= 0
10 + strv_isempty(s)
11 @@
12 expression s;
13 @@
14 - strv_length(s) > 0
15 + !strv_isempty(s)
16 @@
17 expression s;
18 @@
19 - strv_length(s) != 0
20 + !strv_isempty(s)
21 @@
22 expression s;
23 @@
24 - strlen(s) == 0
25 + isempty(s)
26 @@
27 expression s;
28 @@
29 - strlen(s) <= 0
30 + isempty(s)
31 @@
32 expression s;
33 @@
34 - strlen(s) > 0
35 + !isempty(s)
36 @@
37 expression s;
38 @@
39 - strlen(s) != 0
40 + !isempty(s)
41 @@
42 expression s;
43 @@
44 - strlen_ptr(s) == 0
45 + isempty(s)
46 @@
47 expression s;
48 @@
49 - strlen_ptr(s) <= 0
50 + isempty(s)
51 @@
52 expression s;
53 @@
54 - strlen_ptr(s) > 0
55 + !isempty(s)
56 @@
57 expression s;
58 @@
59 - strlen_ptr(s) != 0
60 + !isempty(s)