From: Dan Carpenter Date: Mon, 29 Feb 2016 09:51:07 +0000 (+0300) Subject: dma/mic_x100_dma: IS_ERR() vs PTR_ERR() typo X-Git-Tag: v4.14-rc1~3642^2~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d387ef021a218ee66fe6b64cf447da09cac5c53b;p=platform%2Fkernel%2Flinux-rpi.git dma/mic_x100_dma: IS_ERR() vs PTR_ERR() typo 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 Signed-off-by: Vinod Koul --- diff --git a/drivers/dma/mic_x100_dma.c b/drivers/dma/mic_x100_dma.c index 068e920..1502b24 100644 --- a/drivers/dma/mic_x100_dma.c +++ b/drivers/dma/mic_x100_dma.c @@ -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; }