diff options
author | Vinod Koul <vinod.koul@intel.com> | 2013-11-29 10:52:52 +0530 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2013-12-16 09:18:48 +0530 |
commit | a9ebbcd986de217cf650cb9f850a2fe3f72097f1 (patch) | |
tree | 60c4d9f1abd4c6e48ea23f9543dc02b9cdfb2c07 | |
parent | 9d0f1fa6e104ad80c21a1051bb875b4c33d437e0 (diff) | |
download | linux-a9ebbcd986de217cf650cb9f850a2fe3f72097f1.tar.bz2 |
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 <dan.j.williams@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
-rw-r--r-- | drivers/dma/mmp_tdma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/mmp_tdma.c b/drivers/dma/mmp_tdma.c index 61b562b2602d..d4b730ce0369 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); |