X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=include%2Fafb%2Fafb-req-v1.h;h=3a737699fe9590bbd60d7969c1bafa554126d32a;hb=9c1c9a1ba46eb9ddada4167ce9d20143ee3c9636;hp=03b4ee688bf3804f25c80720a44251d36bed0afa;hpb=c6380108964e71f533d8c672bb9c217020a95e8d;p=src%2Fapp-framework-binder.git diff --git a/include/afb/afb-req-v1.h b/include/afb/afb-req-v1.h index 03b4ee68..3a737699 100644 --- a/include/afb/afb-req-v1.h +++ b/include/afb/afb-req-v1.h @@ -18,7 +18,7 @@ #pragma once #include -#include "afb-req-common.h" +#include "afb-req.h" /* * Stores 'req' on heap for asynchrnous use. @@ -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); }