mirror of
https://github.com/systemd/systemd.git
synced 2026-11-06 05:17:24 +00:00
coccinelle/take-fd: match for -EBADF instead of -1
Follow-up for 254d1313ae
This commit is contained in:
1 parent
49ddb4757b
commit
906682a1de
1 file changed
+2
-2
@@ -4,7 +4,7 @@ local idexpression p;
|
||||
expression q;
|
||||
@@
|
||||
- p = q;
|
||||
- q = -1;
|
||||
- q = -EBADF;
|
||||
- return p;
|
||||
+ return TAKE_FD(q);
|
||||
|
||||
@@ -18,5 +18,5 @@ expression p != errno;
|
||||
expression q;
|
||||
@@
|
||||
- p = q;
|
||||
- q = -1;
|
||||
- q = -EBADF;
|
||||
+ p = TAKE_FD(q);
|
||||
Reference in new issue
Block a user