diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2016-02-29 10:51:07 +0100 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2016-03-03 16:43:01 +0100 |
commit | d387ef021a218ee66fe6b64cf447da09cac5c53b (patch) | |
tree | de709580fc64a6e0ef5fcfdf3c7e7da5675a15d7 /drivers/dma/mic_x100_dma.c | |
parent | dmaengine: acpi-dma: align debug message with flow (diff) | |
download | linux-d387ef021a218ee66fe6b64cf447da09cac5c53b.tar.xz linux-d387ef021a218ee66fe6b64cf447da09cac5c53b.zip |
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 <dan.carpenter@oracle.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/mic_x100_dma.c')
-rw-r--r-- | drivers/dma/mic_x100_dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/mic_x100_dma.c b/drivers/dma/mic_x100_dma.c index 068e920ecb68..1502b24b7c7d 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; } |