From 7603fd817ee3d855190ebdc7bbe51672fd0f166f Mon Sep 17 00:00:00 2001 From: Nanxin Qin Date: Fri, 16 Nov 2018 15:37:01 +0800 Subject: [PATCH] decoder: fixed build err for buildroot. [1/1] PD#SWPL-1909 Problem: fixed build err for builroot. Solution: fixed build err for builroot. Verify: p321 Change-Id: Ib470b9299abd853e8dbf4e4f91e56c8b8544a430 Signed-off-by: Nanxin Qin --- .../frame_provider/decoder/utils/vdec_input.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/amlogic/media_modules/frame_provider/decoder/utils/vdec_input.c b/drivers/amlogic/media_modules/frame_provider/decoder/utils/vdec_input.c index 839b0f794769..fb34320e4f99 100644 --- a/drivers/amlogic/media_modules/frame_provider/decoder/utils/vdec_input.c +++ b/drivers/amlogic/media_modules/frame_provider/decoder/utils/vdec_input.c @@ -169,12 +169,12 @@ static int vframe_chunk_fill(struct vdec_input_s *input, if (chunk->pading_size > len) { p = (u8 *)block->start_virt; - if (!block->is_mapped) { - p = codec_mm_vmap(block->start, count - len); - memset(p, 0, count - len); - codec_mm_unmap_phyaddr(p); - } else - memset(p, 0, count - len); + if (!block->is_mapped) { + p = codec_mm_vmap(block->start, count - len); + memset(p, 0, count - len); + codec_mm_unmap_phyaddr(p); + } else + memset(p, 0, count - len); dma_sync_single_for_device(get_vdec_device(), block->start,