projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36bf8fc
)
dma/mic_x100_dma: IS_ERR() vs PTR_ERR() typo
author
Dan Carpenter
<dan.carpenter@oracle.com>
Mon, 29 Feb 2016 09:51:07 +0000
(12:51 +0300)
committer
Vinod 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
patch
|
blob
|
history
diff --git
a/drivers/dma/mic_x100_dma.c
b/drivers/dma/mic_x100_dma.c
index 068e920ecb68d5ec681a1ca8a84642796a39a704..1502b24b7c7dc7f1efe4de95755150753be1c55e 100644
(file)
--- 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;
}