m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'util.h')
-rw-r--r--util.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/util.h b/util.h
index bd9bcc3..7a64462 100644
--- a/util.h
+++ b/util.h
@@ -9,11 +9,10 @@
} \
})
-#define ORFAIL_PTR(cond, lvalue, label) \
+#define ORFAIL_PTR(ptr, label) \
({ \
- lvalue = (cond); \
- if (IS_ERR(lvalue)) { \
- err = PTR_ERR(lvalue); \
+ if (IS_ERR(ptr)) { \
+ err = PTR_ERR(ptr); \
goto label; \
} \
})