aboutsummaryrefslogtreecommitdiffstats
path: root/include/afb/afb-req-v1.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/afb/afb-req-v1.h')
-rw-r--r--include/afb/afb-req-v1.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/afb/afb-req-v1.h b/include/afb/afb-req-v1.h
index 03b4ee68..db231352 100644
--- a/include/afb/afb-req-v1.h
+++ b/include/afb/afb-req-v1.h
@@ -29,7 +29,7 @@
static inline struct afb_req *afb_req_store_v1(struct afb_req req)
{
struct afb_req *result = (struct afb_req*)malloc(sizeof *result);
- if (result != NULL) {
+ if (result) {
*result = req;
afb_req_addref(req);
}