]> git.ipfire.org Git - thirdparty/systemd.git/blame - coccinelle/cmp.cocci
test: Disable LUKS devices from initramfs in QEMU tests
[thirdparty/systemd.git] / coccinelle / cmp.cocci
CommitLineData
6dd91b36
LP
1@@
2expression x, y;
3@@
4- if (x < y)
5- return -1;
6- if (x > y)
7- return 1;
8- return 0;
9+ return CMP(x, y);
10@@
11expression x, y;
12@@
13- if (x < y)
14- return -1;
15- else if (x > y)
16- return 1;
17- return 0;
18+ return CMP(x, y);
19@@
20expression x, y;
21@@
22- if (x < y)
23- return -1;
24- else if (x > y)
25- return 1;
26- else
27- return 0;
28+ return CMP(x, y);