diff options
author | Philippe Langlais <philippe.langlais@linaro.org> | 2011-05-07 17:09:43 +0200 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2011-05-09 11:24:17 +0530 |
commit | 711b9cea92554be6bd44f04f2485582d762fc441 (patch) | |
tree | f9c100b1b2187c90af4167e11dc4bdd88608ffc5 /drivers/dma | |
parent | ae14d4b5e0a4ebc4e674831cbb97b73ba66dba08 (diff) | |
download | linux-stable-711b9cea92554be6bd44f04f2485582d762fc441.tar.gz linux-stable-711b9cea92554be6bd44f04f2485582d762fc441.tar.bz2 linux-stable-711b9cea92554be6bd44f04f2485582d762fc441.zip |
dmaengine/ste_dma40: fix introduced warnings
The compiler nowadays moans about possibly non-assigned variable.
Fix this by default-assigning 0.
Signed-off-by: Philippe Langlais <philippe.langlais@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/ste_dma40.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c index af955de035f4..65d2535d12ef 100644 --- a/drivers/dma/ste_dma40.c +++ b/drivers/dma/ste_dma40.c @@ -1829,7 +1829,7 @@ d40_get_dev_addr(struct d40_chan *chan, enum dma_data_direction direction) { struct stedma40_platform_data *plat = chan->base->plat_data; struct stedma40_chan_cfg *cfg = &chan->dma_cfg; - dma_addr_t addr; + dma_addr_t addr = 0; if (chan->runtime_addr) return chan->runtime_addr; |