summaryrefslogtreecommitdiff
path: root/drivers/media
diff options
context:
space:
mode:
authorye xingchen <ye.xingchen@zte.com.cn>2022-08-30 10:37:53 +0200
committerMauro Carvalho Chehab <mchehab@kernel.org>2022-09-24 11:21:44 +0200
commit265f2fc52f5873ae3fa653ce1f2dbc47afef6344 (patch)
treeedc040c0a03f219b888837e81c89b3d20b7fb5fe /drivers/media
parentf5218c71098dcf51772b6509184c02ce1cef37b8 (diff)
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: 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>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/platform/qcom/venus/hfi.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/media/platform/qcom/venus/hfi.c b/drivers/media/platform/qcom/venus/hfi.c
index 1968f09ad177..e00aedb41d16 100644
--- a/drivers/media/platform/qcom/venus/hfi.c
+++ b/drivers/media/platform/qcom/venus/hfi.c
@@ -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 ret;
-
if (!ops)
return -EINVAL;
@@ -579,9 +577,8 @@ int hfi_create(struct venus_core *core, const struct hfi_core_ops *ops)
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)