]> git.ipfire.org Git - thirdparty/systemd.git/blame - coccinelle/cmp.cocci
Merge pull request #32963 from yuwata/test-64-btrfs
[thirdparty/systemd.git] / coccinelle / cmp.cocci
CommitLineData
64b92d63 1/* SPDX-License-Identifier: LGPL-2.1-or-later */
6dd91b36
LP
2@@
3expression x, y;
4@@
5- if (x < y)
6- return -1;
7- if (x > y)
8- return 1;
9- return 0;
10+ return CMP(x, y);
11@@
12expression x, y;
13@@
14- if (x < y)
15- return -1;
16- else if (x > y)
17- return 1;
18- return 0;
19+ return CMP(x, y);
20@@
21expression x, y;
22@@
23- if (x < y)
24- return -1;
25- else if (x > y)
26- return 1;
27- else
28- return 0;
29+ return CMP(x, y);