提交 262c6029 编写于 作者: S Shravya Kumbham 提交者: Michal Simek

dmaengine: xilinx_dma: Modify variable type to fix the incompatible warning

Modify the nr_channels variable type from int to u32 to fix
the incompatible parameter coverity warning.

Addresses-Coverity: Event incompatible_param.
Signed-off-by: NShravya Kumbham <shravya.kumbham@xilinx.com>
上级 d7ea8582
......@@ -2921,7 +2921,8 @@ static int xilinx_dma_chan_probe(struct xilinx_dma_device *xdev,
static int xilinx_dma_child_probe(struct xilinx_dma_device *xdev,
struct device_node *node)
{
int ret, i, nr_channels = 1;
int ret, i;
u32 nr_channels = 1;
ret = of_property_read_u32(node, "dma-channels", &nr_channels);
if (xdev->dma_config->dmatype == XDMA_TYPE_AXIMCDMA && ret < 0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册