summaryrefslogtreecommitdiff
path: root/coccinelle
diff options
context:
space:
mode:
Diffstat (limited to 'coccinelle')
-rw-r--r--coccinelle/safe_close.cocci6
1 files changed, 3 insertions, 3 deletions
diff --git a/coccinelle/safe_close.cocci b/coccinelle/safe_close.cocci
index 36a8537251..49254b6fff 100644
--- a/coccinelle/safe_close.cocci
+++ b/coccinelle/safe_close.cocci
@@ -3,17 +3,17 @@
expression fd;
@@
- close(fd);
-- fd = -1;
+- fd = -EBADF;
+ fd = safe_close(fd);
@@
expression fd;
@@
- close_nointr(fd);
-- fd = -1;
+- fd = -EBADF;
+ fd = safe_close(fd);
@@
expression fd;
@@
- safe_close(fd);
-- fd = -1;
+- fd = -EBADF;
+ fd = safe_close(fd);