Skip to content

Commit 1c1df90

Browse files
committed
dmaengine: xilinx: dpdma: remove comparison of unsigned expression
xilinx_dpdma_config() channel id is unsigned int and compares with ZYNQMP_DPDMA_VIDEO0 which is zero, so remove this comparison drivers/dma/xilinx/xilinx_dpdma.c:1073:15: warning: comparison of unsigned expression in ‘>= 0’ is always true [-Wtype-limits] if (chan->id >= ZYNQMP_DPDMA_VIDEO0 && chan->id <= ZYNQMP_DPDMA_VIDEO2) Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Laurent Pinchart <[email protected]> Signed-off-by: Vinod Koul <[email protected]>
1 parent 7cbb0c6 commit 1c1df90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/dma/xilinx/xilinx_dpdma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1070,7 +1070,7 @@ static int xilinx_dpdma_config(struct dma_chan *dchan,
10701070
* Abuse the slave_id to indicate that the channel is part of a video
10711071
* group.
10721072
*/
1073-
if (chan->id >= ZYNQMP_DPDMA_VIDEO0 && chan->id <= ZYNQMP_DPDMA_VIDEO2)
1073+
if (chan->id <= ZYNQMP_DPDMA_VIDEO2)
10741074
chan->video_group = config->slave_id != 0;
10751075

10761076
spin_unlock_irqrestore(&chan->lock, flags);

0 commit comments

Comments
 (0)