summaryrefslogtreecommitdiffstats
path: root/coccinelle/synthetic-errno.cocci
diff options
context:
space:
mode:
Diffstat (limited to 'coccinelle/synthetic-errno.cocci')
-rw-r--r--coccinelle/synthetic-errno.cocci6
1 files changed, 6 insertions, 0 deletions
diff --git a/coccinelle/synthetic-errno.cocci b/coccinelle/synthetic-errno.cocci
index 3d9af0db21..dcae069f74 100644
--- a/coccinelle/synthetic-errno.cocci
+++ b/coccinelle/synthetic-errno.cocci
@@ -15,9 +15,15 @@ log_debug("Found no default boot entry :(");
expression e;
expression list args;
@@
+(
+/* Ignore specific cases in src/import/{export,import,pull}.c where we want to return positive value on success. */
+log_info("Exiting.");
+return -r;
+|
- log_info(args);
- return -e;
+ return log_info_errno(SYNTHETIC_ERRNO(e), args);
+)
@@
expression e;
expression list args;