mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
media: mediatek: vcodec: remove redundant return value of vdec_vp9_slice_setup_lat_buffer()
vdec_vp9_slice_setup_lat_buffer() never fails, remove the 'return 0' from vdec_vp9_slice_setup_lat_buffer() and modify its signature. Also, remove the return value check in vdec_vp9_slice_setup_lat(). Signed-off-by: Haoxiang Li <lihaoxiang@isrc.iscas.ac.cn> Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
parent
90368323fb
commit
1e77971dbe
|
|
@ -974,10 +974,10 @@ static int vdec_vp9_slice_setup_pfc(struct vdec_vp9_slice_instance *instance,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int vdec_vp9_slice_setup_lat_buffer(struct vdec_vp9_slice_instance *instance,
|
||||
struct vdec_vp9_slice_vsi *vsi,
|
||||
struct mtk_vcodec_mem *bs,
|
||||
struct vdec_lat_buf *lat_buf)
|
||||
static void vdec_vp9_slice_setup_lat_buffer(struct vdec_vp9_slice_instance *instance,
|
||||
struct vdec_vp9_slice_vsi *vsi,
|
||||
struct mtk_vcodec_mem *bs,
|
||||
struct vdec_lat_buf *lat_buf)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
|
@ -1011,8 +1011,6 @@ static int vdec_vp9_slice_setup_lat_buffer(struct vdec_vp9_slice_instance *insta
|
|||
|
||||
vsi->row_info.buf = 0;
|
||||
vsi->row_info.size = 0;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int vdec_vp9_slice_setup_prob_buffer(struct vdec_vp9_slice_instance *instance,
|
||||
|
|
@ -1166,9 +1164,7 @@ static int vdec_vp9_slice_setup_lat(struct vdec_vp9_slice_instance *instance,
|
|||
if (ret)
|
||||
goto err;
|
||||
|
||||
ret = vdec_vp9_slice_setup_lat_buffer(instance, vsi, bs, lat_buf);
|
||||
if (ret)
|
||||
goto err;
|
||||
vdec_vp9_slice_setup_lat_buffer(instance, vsi, bs, lat_buf);
|
||||
|
||||
vdec_vp9_slice_setup_seg_buffer(instance, vsi, &instance->seg[0]);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user