1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-22 13:33:56 +03: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
)