Forráskód Böngészése

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>
Vinod Koul 11 éve
szülő
commit
a9ebbcd986
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      drivers/dma/mmp_tdma.c

+ 1 - 1
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)
 static int mmp_tdma_config_chan(struct mmp_tdma_chan *tdmac)
 {
 {
-	unsigned int tdcr;
+	unsigned int tdcr = 0;
 
 
 	mmp_tdma_disable_chan(tdmac);
 	mmp_tdma_disable_chan(tdmac);