Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dmaengine: dw-edma: remove a macro conditional with similar branches

After adding commit 8fc5133d6d4d ("dmaengine: dw-edma: Fix unaligned
64bit access") two branches under macro conditional become identical,
thus the code can be simplified without any functional change.

Signed-off-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
Acked-by: Herve Codina <herve.codina@bootlin.com>
Link: https://lore.kernel.org/r/20220610100700.2295522-1-vladimir.zapolskiy@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Vladimir Zapolskiy and committed by
Vinod Koul
c9357195 7811f2e7

-8
-8
drivers/dma/dw-edma/dw-edma-v0-core.c
··· 414 414 SET_CH_32(dw, chan->dir, chan->id, ch_control1, 415 415 (DW_EDMA_V0_CCS | DW_EDMA_V0_LLE)); 416 416 /* Linked list */ 417 - 418 - #ifdef CONFIG_64BIT 419 417 /* llp is not aligned on 64bit -> keep 32bit accesses */ 420 418 SET_CH_32(dw, chan->dir, chan->id, llp.lsb, 421 419 lower_32_bits(chunk->ll_region.paddr)); 422 420 SET_CH_32(dw, chan->dir, chan->id, llp.msb, 423 421 upper_32_bits(chunk->ll_region.paddr)); 424 - #else /* CONFIG_64BIT */ 425 - SET_CH_32(dw, chan->dir, chan->id, llp.lsb, 426 - lower_32_bits(chunk->ll_region.paddr)); 427 - SET_CH_32(dw, chan->dir, chan->id, llp.msb, 428 - upper_32_bits(chunk->ll_region.paddr)); 429 - #endif /* CONFIG_64BIT */ 430 422 } 431 423 /* Doorbell */ 432 424 SET_RW_32(dw, chan->dir, doorbell,