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
1 changed files with 10 additions and 0 deletions

View File

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