Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dmaengine: mxs: remove NO_IRQ check

The mxs_chan->chan_irq variable is guaranteed to never be NO_IRQ,
as it gets assigned the result of platform_get_irq() that returns
either a valid positive interrupt number, or a negative failure
code that leads to the channel not being used.

This removes the redundant check, eliminating one more instance
of NO_IRQ.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>

authored by

Arnd Bergmann and committed by
Vinod Koul
028e84a1 2d9e31b9

+4 -6
+4 -6
drivers/dma/mxs-dma.c
··· 429 429 goto err_alloc; 430 430 } 431 431 432 - if (mxs_chan->chan_irq != NO_IRQ) { 433 - ret = request_irq(mxs_chan->chan_irq, mxs_dma_int_handler, 434 - 0, "mxs-dma", mxs_dma); 435 - if (ret) 436 - goto err_irq; 437 - } 432 + ret = request_irq(mxs_chan->chan_irq, mxs_dma_int_handler, 433 + 0, "mxs-dma", mxs_dma); 434 + if (ret) 435 + goto err_irq; 438 436 439 437 ret = clk_prepare_enable(mxs_dma->clk); 440 438 if (ret)