dma/mic_x100_dma: IS_ERR() vs PTR_ERR() typo
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 29 Feb 2016 09:51:07 +0000 (12:51 +0300)
committerVinod Koul <vinod.koul@intel.com>
Thu, 3 Mar 2016 15:43:01 +0000 (21:13 +0530)
This is harmless because the caller only cares about zero vs non-zero
but we should be returning PTR_ERR() here.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/mic_x100_dma.c

index 068e920ecb68d5ec681a1ca8a84642796a39a704..1502b24b7c7dc7f1efe4de95755150753be1c55e 100644 (file)
@@ -483,7 +483,7 @@ static int mic_dma_setup_irq(struct mic_dma_chan *ch)
                        mic_dma_intr_handler, mic_dma_thread_fn,
                        "mic dma_channel", ch, ch->ch_num);
        if (IS_ERR(ch->cookie))
-               return IS_ERR(ch->cookie);
+               return PTR_ERR(ch->cookie);
        return 0;
 }