media: venus: simplify the return expression of session_process_buf()
Simplify the return expression. Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com> Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org> Signed-off-by: Stanimir Varbanov <stanimir.k.varbanov@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
be9aac1874
commit
98d4351847
|
@ -502,7 +502,6 @@ session_process_buf(struct venus_inst *inst, struct vb2_v4l2_buffer *vbuf)
|
|||
struct vb2_buffer *vb = &vbuf->vb2_buf;
|
||||
unsigned int type = vb->type;
|
||||
struct hfi_frame_data fdata;
|
||||
int ret;
|
||||
|
||||
memset(&fdata, 0, sizeof(fdata));
|
||||
fdata.alloc_len = buf->size;
|
||||
|
@ -533,11 +532,7 @@ session_process_buf(struct venus_inst *inst, struct vb2_v4l2_buffer *vbuf)
|
|||
fdata.offset = 0;
|
||||
}
|
||||
|
||||
ret = hfi_session_process_buf(inst, &fdata);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
return 0;
|
||||
return hfi_session_process_buf(inst, &fdata);
|
||||
}
|
||||
|
||||
static bool is_dynamic_bufmode(struct venus_inst *inst)
|
||||
|
|
Loading…
Reference in New Issue