X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=include%2Fafb%2Fafb-req-v1.h;h=db2313522e73fd901871cab4039e00dfcd1a910b;hb=5659246230cef16abae4b1edda9791a1f25fc03d;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..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); }