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 <shravya.kumbham@xilinx.com> Signed-off-by: Harini Katakam <harini.katakam@xilinx.com> Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com> Link: https://lore.kernel.org/r/1653378553-28548-1-git-send-email-radhey.shyam.pandey@amd.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent f9fdb0b commit e0f1b21

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)