dmaengine: dw-edma: Fix inconsistent indenting
Subsystems (2)
PATCH 1/1 dmaengine: dw-edma: Fix inconsistent indenting
Eliminate the follow smatch warning:
drivers/dma/dw-edma/dw-edma-v0-core.c:419 dw_edma_v0_core_start() warn:
inconsistent indenting.
Reported-by Abaci Robot <[email protected]>
Signed-off-by Jiapeng Chong <[email protected]>
--- drivers/dma/dw-edma/dw-edma-v0-core.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-)
drivers/dma/dw-edma/dw-edma-v0-core.c +10 -9
@@ -414,17 +414,18 @@ void dw_edma_v0_core_start(struct dw_edma_chunk *chunk, bool first)SET_CH_32 (dw, chan->dir, chan->id, ch_control1, (DW_EDMA_V0_CCS |DW_EDMA_V0_LLE ));/* Linked list */ +#ifdef CONFIG_64BIT -/* llp is not aligned on 64bit -> keep 32bit accesses */ -SET_CH_32 (dw, chan->dir, chan->id, llp.lsb, -lower_32_bits (chunk->ll_region.paddr)); -SET_CH_32 (dw, chan->dir, chan->id, llp.msb, -upper_32_bits (chunk->ll_region.paddr)); +/* llp is not aligned on 64bit -> keep 32bit accesses */ +SET_CH_32 (dw, chan->dir, chan->id, llp.lsb, +lower_32_bits (chunk->ll_region.paddr)); +SET_CH_32 (dw, chan->dir, chan->id, llp.msb, +upper_32_bits (chunk->ll_region.paddr));#else /* CONFIG_64BIT */ -SET_CH_32 (dw, chan->dir, chan->id, llp.lsb, -lower_32_bits (chunk->ll_region.paddr)); -SET_CH_32 (dw, chan->dir, chan->id, llp.msb, -upper_32_bits (chunk->ll_region.paddr)); +SET_CH_32 (dw, chan->dir, chan->id, llp.lsb, +lower_32_bits (chunk->ll_region.paddr)); +SET_CH_32 (dw, chan->dir, chan->id, llp.msb, +upper_32_bits (chunk->ll_region.paddr));#endif /* CONFIG_64BIT */ }/* Doorbell */
Signature · 1 line
2.20.1.7.g153144c
Quoted 4 lines · Jiapeng Chong
Eliminate the follow smatch warning:
drivers/dma/dw-edma/dw-edma-v0-core.c:419dw_edma_v0_core_start()warn:
inconsistent indenting.
Applied, thanks
Signature · 1 line
~Vinod