mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 00:39:48 +00:00
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/20200718135201.191881-1-vkoul@kernel.org Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Vinod Koul <vkoul@kernel.org>
This commit is contained in:
parent
7cbb0c63de
commit
1c1df90871
1 changed files with 1 additions and 1 deletions
|
@ -1070,7 +1070,7 @@ static int xilinx_dpdma_config(struct dma_chan *dchan,
|
||||||
* Abuse the slave_id to indicate that the channel is part of a video
|
* Abuse the slave_id to indicate that the channel is part of a video
|
||||||
* group.
|
* group.
|
||||||
*/
|
*/
|
||||||
if (chan->id >= ZYNQMP_DPDMA_VIDEO0 && chan->id <= ZYNQMP_DPDMA_VIDEO2)
|
if (chan->id <= ZYNQMP_DPDMA_VIDEO2)
|
||||||
chan->video_group = config->slave_id != 0;
|
chan->video_group = config->slave_id != 0;
|
||||||
|
|
||||||
spin_unlock_irqrestore(&chan->lock, flags);
|
spin_unlock_irqrestore(&chan->lock, flags);
|
||||||
|
|
Loading…
Reference in a new issue