m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2018-05-04 17:48:18 +0200
committerMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2018-05-04 18:39:43 +0200
commit2eaa35293d31075348fe606bef5a58885d8e09a9 (patch)
tree3534a35a2ba3523083d322211bc404ea9ec478cb /util.h
parent92ea475ae6afe103cd5b2e68fdc84f02e3aa1657 (diff)
Refactor
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; \
} \
})