|
@@ -155,7 +155,7 @@ static void vp8_enc_free_work_buf(struct venc_vp8_inst *inst)
|
|
|
|
|
|
/* Buffers need to be freed by AP. */
|
|
|
for (i = 0; i < VENC_VP8_VPU_WORK_BUF_MAX; i++) {
|
|
|
- if ((inst->work_bufs[i].size == 0))
|
|
|
+ if (inst->work_bufs[i].size == 0)
|
|
|
continue;
|
|
|
mtk_vcodec_mem_free(inst->ctx, &inst->work_bufs[i]);
|
|
|
}
|
|
@@ -172,7 +172,7 @@ static int vp8_enc_alloc_work_buf(struct venc_vp8_inst *inst)
|
|
|
mtk_vcodec_debug_enter(inst);
|
|
|
|
|
|
for (i = 0; i < VENC_VP8_VPU_WORK_BUF_MAX; i++) {
|
|
|
- if ((wb[i].size == 0))
|
|
|
+ if (wb[i].size == 0)
|
|
|
continue;
|
|
|
/*
|
|
|
* This 'wb' structure is set by VPU side and shared to AP for
|