projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d0f1fa
)
dmaengine: mmp: fix uninitialized variable
author
Vinod Koul
<vinod.koul@intel.com>
Fri, 29 Nov 2013 05:22:52 +0000
(10:52 +0530)
committer
Vinod Koul
<vinod.koul@intel.com>
Mon, 16 Dec 2013 03:48:48 +0000
(09:18 +0530)
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>
drivers/dma/mmp_tdma.c
patch
|
blob
|
history
diff --git
a/drivers/dma/mmp_tdma.c
b/drivers/dma/mmp_tdma.c
index 61b562b2602dadd48ff596bd856745750366e291..d4b730ce03691abb6a90dc1bc7cf952f0e23a5fe 100644
(file)
--- 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);