X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=include%2Fafb%2Fafb-req-v1.h;h=db2313522e73fd901871cab4039e00dfcd1a910b;hb=2fa03e0163e48d3ccbff9d953900250b52787968;hp=03b4ee688bf3804f25c80720a44251d36bed0afa;hpb=2f876805d8179fe46a0984deaa4e716926e6a96b;p=src%2Fapp-framework-binder.git 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); }