]> Pileus Git - ~andy/linux/commitdiff
dmaengine/ste_dma40: fix introduced warnings
authorPhilippe Langlais <philippe.langlais@linaro.org>
Sat, 7 May 2011 15:09:43 +0000 (17:09 +0200)
committerVinod Koul <vinod.koul@intel.com>
Mon, 9 May 2011 05:54:17 +0000 (11:24 +0530)
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>
drivers/dma/ste_dma40.c

index af955de035f42dd4d6a96ea97c11f16295b44e7b..65d2535d12ef4f53fa0fc2ac0d25c9317d09c12c 100644 (file)
@@ -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;