Skip to content

Commit a9ebbcd

Browse files
author
Vinod Koul
committed
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>
1 parent 9d0f1fa commit a9ebbcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/dma/mmp_tdma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ static void mmp_tdma_pause_chan(struct mmp_tdma_chan *tdmac)
182182

183183
static int mmp_tdma_config_chan(struct mmp_tdma_chan *tdmac)
184184
{
185-
unsigned int tdcr;
185+
unsigned int tdcr = 0;
186186

187187
mmp_tdma_disable_chan(tdmac);
188188

0 commit comments

Comments
 (0)