From: Chen Liangjun Date: Fri, 16 Nov 2012 02:32:07 +0000 (+0800) Subject: ENGR00233886 ASRC: init variable to fix build warning X-Git-Tag: v3.0.35-fsl~249 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ec2015aef2e56bff3d3af92b7eddad73587c6db4;p=karo-tx-linux.git ENGR00233886 ASRC: init variable to fix build warning 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: Chen Liangjun --- diff --git a/drivers/mxc/asrc/mxc_asrc.c b/drivers/mxc/asrc/mxc_asrc.c index 6c5daed7ce53..77f88f36e696 100644 --- a/drivers/mxc/asrc/mxc_asrc.c +++ b/drivers/mxc/asrc/mxc_asrc.c @@ -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++) {