Commit 265f2fc5 authored by ye xingchen's avatar ye xingchen Committed by Mauro Carvalho Chehab

media: venus: hfi: Remove the unneeded result variable

Return the value venus_hfi_create() directly instead of storing it in
another redundant variable.
Signed-off-by: default avatarye xingchen <ye.xingchen@zte.com.cn>
Signed-off-by: default avatarStanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent f5218c71
...@@ -569,8 +569,6 @@ irqreturn_t hfi_isr(int irq, void *dev) ...@@ -569,8 +569,6 @@ irqreturn_t hfi_isr(int irq, void *dev)
int hfi_create(struct venus_core *core, const struct hfi_core_ops *ops) int hfi_create(struct venus_core *core, const struct hfi_core_ops *ops)
{ {
int ret;
if (!ops) if (!ops)
return -EINVAL; return -EINVAL;
...@@ -579,9 +577,8 @@ int hfi_create(struct venus_core *core, const struct hfi_core_ops *ops) ...@@ -579,9 +577,8 @@ int hfi_create(struct venus_core *core, const struct hfi_core_ops *ops)
core->state = CORE_UNINIT; core->state = CORE_UNINIT;
init_completion(&core->done); init_completion(&core->done);
pkt_set_version(core->res->hfi_version); 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) void hfi_destroy(struct venus_core *core)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment