mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 09:19:51 +00:00
dma40: remove unnecessary casts
Acked-by: Per Forlin <per.forlin@stericsson.com> Acked-by: Jonas Aaberg <jonas.aberg@stericsson.com> Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com> Signed-off-by: Linus Walleij <linus.walleij@stericsson.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
This commit is contained in:
parent
b00f938c8c
commit
d924abad7f
1 changed files with 2 additions and 4 deletions
|
@ -357,14 +357,12 @@ static int d40_pool_lli_alloc(struct d40_chan *d40c, struct d40_desc *d40d,
|
|||
}
|
||||
|
||||
if (is_log) {
|
||||
d40d->lli_log.src = PTR_ALIGN((struct d40_log_lli *) base,
|
||||
align);
|
||||
d40d->lli_log.src = PTR_ALIGN(base, align);
|
||||
d40d->lli_log.dst = d40d->lli_log.src + lli_len;
|
||||
|
||||
d40d->lli_pool.dma_addr = 0;
|
||||
} else {
|
||||
d40d->lli_phy.src = PTR_ALIGN((struct d40_phy_lli *)base,
|
||||
align);
|
||||
d40d->lli_phy.src = PTR_ALIGN(base, align);
|
||||
d40d->lli_phy.dst = d40d->lli_phy.src + lli_len;
|
||||
|
||||
d40d->lli_pool.dma_addr = dma_map_single(d40c->base->dev,
|
||||
|
|
Loading…
Reference in a new issue