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