Commit 2cf8cf02 authored by Chen Liangjun's avatar Chen Liangjun

ENGR00233886 ASRC: init variable to fix build warning


Compiling warning on mainline imx_3.0.35 (potential bug):
drivers/mxc/asrc/mxc_asrc.c: In function 'asrc_output_task_worker':
drivers/mxc/asrc/mxc_asrc.c:961:68: warning: 't_size' may be used
uninitialized in this function [-Wuninitialized]
drivers/mxc/asrc/mxc_asrc.c:943:23: note: 't_size' was declared here

In this patch, init t_size.
Signed-off-by: default avatarChen Liangjun <>
parent d878a76a
......@@ -945,6 +945,7 @@ static void asrc_read_output_FIFO_S16(struct asrc_pair_params *params)
u32 size, i, j, reg, t_size;
u16 *index = params->output_last_period.dma_vaddr;
t_size = 0;
size = asrc_get_output_FIFO_size(params->index);
while (size) {
for (i = 0; i < size; i++) {
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment