Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d387ef02 authored by Dan Carpenter's avatar Dan Carpenter Committed by Vinod Koul
Browse files

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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent 36bf8fc4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}