Skip to content

Commit e0f1b21

Browse files
Shravya Kumbhamvinodkoul
authored andcommitted
dmaengine: zynqmp_dma: Typecast with enum to fix the coverity warning
Typecast the flags variable with (enum dma_ctrl_flags) in zynqmp_dma_prep_memcpy function to fix the coverity warning. Addresses-Coverity: Event mixed_enum_type. Signed-off-by: Shravya Kumbham <[email protected]> Signed-off-by: Harini Katakam <[email protected]> Signed-off-by: Radhey Shyam Pandey <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent f9fdb0b commit e0f1b21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/dma/xilinx/zynqmp_dma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,7 @@ static struct dma_async_tx_descriptor *zynqmp_dma_prep_memcpy(
849849

850850
zynqmp_dma_desc_config_eod(chan, desc);
851851
async_tx_ack(&first->async_tx);
852-
first->async_tx.flags = flags;
852+
first->async_tx.flags = (enum dma_ctrl_flags)flags;
853853
return &first->async_tx;
854854
}
855855

0 commit comments

Comments
 (0)