Return the value venus_hfi_create() directly instead of storing it in
another redundant variable.
Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
 
 int hfi_create(struct venus_core *core, const struct hfi_core_ops *ops)
 {
-       int ret;
-
        if (!ops)
                return -EINVAL;
 
        core->state = CORE_UNINIT;
        init_completion(&core->done);
        pkt_set_version(core->res->hfi_version);
-       ret = venus_hfi_create(core);
 
-       return ret;
+       return venus_hfi_create(core);
 }
 
 void hfi_destroy(struct venus_core *core)