1
0
mirror of https://github.com/systemd/systemd synced 2025-10-06 00:13:24 +02:00

coccinelle: check for invalid errno comparisons

Prompted by #15868
This commit is contained in:
Frantisek Sumsal
2020-10-07 15:26:16 +02:00
parent 447643130c
commit 7e97526421

View File

@@ -0,0 +1,10 @@
@@
constant c;
@@
(
- errno == -c
+ errno == c
|
- errno != -c
+ errno != c
)