diff options
author | Vinod Koul <vinod.koul@intel.com> | 2013-11-29 06:22:52 +0100 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2013-12-16 04:48:48 +0100 |
commit | a9ebbcd986de217cf650cb9f850a2fe3f72097f1 (patch) | |
tree | 60c4d9f1abd4c6e48ea23f9543dc02b9cdfb2c07 /drivers/dma/mmp_tdma.c | |
parent | dmaengine: mmp_tdma: fix the 'pointer from integer' warnings (diff) | |
download | linux-a9ebbcd986de217cf650cb9f850a2fe3f72097f1.tar.xz linux-a9ebbcd986de217cf650cb9f850a2fe3f72097f1.zip |
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>
Diffstat (limited to 'drivers/dma/mmp_tdma.c')
-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); |