dmaengine: stm32-dma: Fix unsigned variable compared with zero
authorVinod Koul <vkoul@kernel.org>
Fri, 26 Apr 2019 17:00:27 +0000 (22:30 +0530)
committerVinod Koul <vkoul@kernel.org>
Mon, 29 Apr 2019 04:29:07 +0000 (09:59 +0530)
commitc6504be53972cd57326196eb2a18b2b182c26c5c
tree3311b7000b09a02812045565fa3786cd02e72440
parentf4fd2ec08f17b34f1c7c18414d5fc882efd51e83
dmaengine: stm32-dma: Fix unsigned variable compared with zero

Commit f4fd2ec08f17: ("dmaengine: stm32-dma: use platform_get_irq()") used
unsigned variable irq to store the results and check later for negative
errors, so update the code to use signed variable for this

Fixes: f4fd2ec08f17 ("dmaengine: stm32-dma: use platform_get_irq()")
Reported-by: kbuild test robot <lkp@intel.com>
Reported-by: Julia Lawall <julia.lawall@lip6.fr>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/stm32-dma.c