From: Vinod Koul Date: Fri, 29 Nov 2013 05:22:52 +0000 (+0530) Subject: dmaengine: mmp: fix uninitialized variable X-Git-Tag: upstream/snapshot3+hdmi~3526^2~30 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a9ebbcd986de217cf650cb9f850a2fe3f72097f1;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git dmaengine: mmp: fix uninitialized variable drivers/dma/mmp_tdma.c:236:8: warning: 'tdcr' may be used uninitialized in this function [-Wuninitialized] Reported-by: Dan Williams Signed-off-by: Vinod Koul --- diff --git a/drivers/dma/mmp_tdma.c b/drivers/dma/mmp_tdma.c index 61b562b..d4b730c 100644 --- a/drivers/dma/mmp_tdma.c +++ b/drivers/dma/mmp_tdma.c @@ -182,7 +182,7 @@ static void mmp_tdma_pause_chan(struct mmp_tdma_chan *tdmac) static int mmp_tdma_config_chan(struct mmp_tdma_chan *tdmac) { - unsigned int tdcr; + unsigned int tdcr = 0; mmp_tdma_disable_chan(tdmac);