msm: vidc: fix a return value uninitialized issue

Fix the return value uninitialized issue in flush_buffer.

Change-Id: Ie1ee94877e788dd8a4454ff8f96f566bc9c94902
Signed-off-by: Tapas Kumar Kundu <tkundu@codeaurora.org>
This commit is contained in:
Qiwei Liu 2018-09-13 18:13:41 +08:00 committed by Tapas Kumar Kundu
parent 9ad222c284
commit 635bd3e07f

View File

@ -6218,7 +6218,6 @@ struct msm_vidc_buffer *msm_comm_get_buffer_using_device_planes(
int msm_comm_flush_vidc_buffer(struct msm_vidc_inst *inst,
struct msm_vidc_buffer *mbuf)
{
int rc;
struct vb2_buffer *vb;
u32 port;
@ -6254,7 +6253,7 @@ int msm_comm_flush_vidc_buffer(struct msm_vidc_inst *inst,
}
mutex_unlock(&inst->bufq[port].lock);
return rc;
return 0;
}
int msm_comm_qbuf_cache_operations(struct msm_vidc_inst *inst,