Merge "msm: vidc: Fix KW error"

This commit is contained in:
qctecmdr 2020-06-18 03:39:31 -07:00 • committed by Gerrit - the friendly Code Review server
commit 2265fed004
2 changed files with 5 additions and 3 deletions

View file

@ -376,13 +376,15 @@ int msm_vidc_get_decoder_internal_buffer_sizes(struct msm_vidc_inst *inst)
struct msm_vidc_dec_buff_size_calculators *dec_calculators;
u32 width, height, i, out_min_count, num_vpp_pipes;
struct v4l2_format *f;
u32 vpp_delay = inst->bse_vpp_delay;
u32 vpp_delay;
if (!inst || !inst->core || !inst->core->platform_data) {
d_vpr_e("%s: Instance is null!", __func__);
return -EINVAL;
}
vpp_delay = inst->bse_vpp_delay;
num_vpp_pipes = inst->core->platform_data->num_vpp_pipes;
f = &inst->fmts[INPUT_PORT].v4l2_fmt;
switch (f->fmt.pix_mp.pixelformat) {

View file

@ -228,7 +228,7 @@ static inline char *get_debug_level_str(int level)
static inline void tic(struct msm_vidc_inst *i, enum profiling_points p,
char *b)
{
struct timeval __ddl_tv;
struct timeval __ddl_tv = { 0 };
if (!i->debug.pdata[p].name[0])
memcpy(i->debug.pdata[p].name, b, 64);
@ -243,7 +243,7 @@ static inline void tic(struct msm_vidc_inst *i, enum profiling_points p,
static inline void toc(struct msm_vidc_inst *i, enum profiling_points p)
{
struct timeval __ddl_tv;
struct timeval __ddl_tv = { 0 };
if ((msm_vidc_debug & VIDC_PERF) &&
!i->debug.pdata[p].sampling) {