]> git.ipfire.org Git - thirdparty/systemd.git/blame - coccinelle/empty-if.cocci
tree-wide: use IN_SET where possible
[thirdparty/systemd.git] / coccinelle / empty-if.cocci
CommitLineData
ece174c5 1@@
1f6b4113 2expression e, f, g, h, i, j;
ece174c5
LP
3statement s, t;
4@@
5(
6if (e) {
1f6b4113
LP
7(
8if (h) s
9|
10if (h) s else t
11|
12while (h) s
13|
14for (h; i; j) s
15)
ece174c5
LP
16}
17|
1f6b4113
LP
18while (e) {
19(
20if (h) s
21|
22if (h) s else t
23|
24while (h) s
25|
26for (h; i; j) s
27)
28}
29|
30for (e; f; g) {
31(
32if (h) s
33|
34if (h) s else t
35|
36while (h) s
37|
38for (h; i; j) s
39)
ece174c5
LP
40}
41|
42- if (e) {
43+ if (e)
44s
45- }
1f6b4113
LP
46|
47- while (e) {
48+ while (e)
49s
50- }
51|
52- for (e; f; g) {
53+ for (e; f; g)
54s
55- }
ece174c5 56)