Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 711b9cea authored by Philippe Langlais's avatar Philippe Langlais Committed by Vinod Koul
Browse files

dmaengine/ste_dma40: fix introduced warnings



The compiler nowadays moans about possibly non-assigned variable.
Fix this by default-assigning 0.

Signed-off-by: default avatarPhilippe Langlais <philippe.langlais@linaro.org>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent ae14d4b5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;