dmaengine: sirf: fix irq number error check
authorArnd Bergmann <arnd@arndb.de>
Fri, 2 Sep 2016 23:17:20 +0000 (01:17 +0200)
committerVinod Koul <vinod.koul@intel.com>
Mon, 5 Sep 2016 11:10:52 +0000 (16:40 +0530)
commit524c6e04f826cea8a34a27136d8f5925df9213ed
tree326faa33e03fe2ecb9ca6889c50bdde632add40a
parent028e84a1de7cba6a3e4cf1a22094b76a4b92cefb
dmaengine: sirf: fix irq number error check

irq_of_parse_and_map() returns 0 on error, no NO_IRQ, so the
failure condition can never be met.

This changes the comparison to check for zero instead.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/sirf-dma.c
This page took 0.034616 seconds and 5 git commands to generate.