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:
bfde98b
)
dmaengine: jz4740: Remove extra check
author
Tapasweni Pathak
<tapaswenipathak@gmail.com>
Fri, 20 Feb 2015 12:28:44 +0000
(17:58 +0530)
committer
Vinod Koul
<vinod.koul@intel.com>
Thu, 5 Mar 2015 16:38:46 +0000
(22:08 +0530)
Remove double check on chan->desc.
Found by Coccinelle.
Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/dma-jz4740.c
patch
|
blob
|
history
diff --git
a/drivers/dma/dma-jz4740.c
b/drivers/dma/dma-jz4740.c
index 4527a3ebeac446f58a4c3b3b8722d6caf16b1b63..f6a4c4270dcdb5a4690a2109e314874023e52937 100644
(file)
--- a/
drivers/dma/dma-jz4740.c
+++ b/
drivers/dma/dma-jz4740.c
@@
-343,7
+343,7
@@
static void jz4740_dma_chan_irq(struct jz4740_dmaengine_chan *chan)
{
spin_lock(&chan->vchan.lock);
if (chan->desc) {
- if (chan->desc
&& chan->desc
->cyclic) {
+ if (chan->desc->cyclic) {
vchan_cyclic_callback(&chan->desc->vdesc);
} else {
if (chan->next_sg == chan->desc->num_sgs) {