diff options
author | Shravya Kumbham <shravya.kumbham@xilinx.com> | 2020-12-23 16:51:02 +0530 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2021-01-04 18:12:39 +0530 |
commit | 2d5efea64472469117dc1a9a39530069e95b21e9 (patch) | |
tree | 0159e796a69d8e5a15ad088edfcb0fe5cf71b74a /drivers/dma/xilinx | |
parent | faeb0731be0a31e2246b21a85fa7dabbd750101d (diff) | |
download | linux-2d5efea64472469117dc1a9a39530069e95b21e9.tar.gz linux-2d5efea64472469117dc1a9a39530069e95b21e9.tar.bz2 linux-2d5efea64472469117dc1a9a39530069e95b21e9.zip |
dmaengine: xilinx_dma: fix mixed_enum_type coverity warning
Typecast the fls(width -1) with (enum dmaengine_alignment) in
xilinx_dma_chan_probe function to fix the coverity warning.
Addresses-Coverity: Event mixed_enum_type.
Fixes: 9cd4360de609 ("dma: Add Xilinx AXI Video Direct Memory Access Engine driver support")
Signed-off-by: Shravya Kumbham <shravya.kumbham@xilinx.com>
Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Link: https://lore.kernel.org/r/1608722462-29519-4-git-send-email-radhey.shyam.pandey@xilinx.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/xilinx')
-rw-r--r-- | drivers/dma/xilinx/xilinx_dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/xilinx/xilinx_dma.c b/drivers/dma/xilinx/xilinx_dma.c index 3e374e8d2244..79777550a6ff 100644 --- a/drivers/dma/xilinx/xilinx_dma.c +++ b/drivers/dma/xilinx/xilinx_dma.c @@ -2781,7 +2781,7 @@ static int xilinx_dma_chan_probe(struct xilinx_dma_device *xdev, has_dre = false; if (!has_dre) - xdev->common.copy_align = fls(width - 1); + xdev->common.copy_align = (enum dmaengine_alignment)fls(width - 1); if (of_device_is_compatible(node, "xlnx,axi-vdma-mm2s-channel") || of_device_is_compatible(node, "xlnx,axi-dma-mm2s-channel") || |