From: Jonas Aaberg Date: Mon, 9 Aug 2010 12:08:49 +0000 (+0000) Subject: DMAENGINE: ste_dma40: fix possible use of uninitialized variable X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=69f93faa57ed6c91b32aae1dcff7282fcb2872f5;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git DMAENGINE: ste_dma40: fix possible use of uninitialized variable Signed-off-by: Jonas Aaberg Signed-off-by: Linus Walleij Signed-off-by: Dan Williams --- diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c index 2b209fa004ba..ac325e918171 100644 --- a/drivers/dma/ste_dma40.c +++ b/drivers/dma/ste_dma40.c @@ -684,12 +684,12 @@ static void d40_config_write(struct d40_chan *d40c) static void d40_desc_load(struct d40_chan *d40c, struct d40_desc *d40d) { - if (d40d->lli_phy.dst && d40d->lli_phy.src) { + if (d40c->log_num == D40_PHY_CHAN) { d40_phy_lli_write(d40c->base->virtbase, d40c->phy_chan->num, d40d->lli_phy.dst, d40d->lli_phy.src); - } else if (d40d->lli_log.dst && d40d->lli_log.src) { + } else { struct d40_log_lli *src = d40d->lli_log.src; struct d40_log_lli *dst = d40d->lli_log.dst; int s;