Skip to content

Commit

Permalink
dmaengine: jz4740: Remove extra check
Browse files Browse the repository at this point in the history
Remove double check on chan->desc.

Found by Coccinelle.

Signed-off-by: Tapasweni Pathak <[email protected]>
Acked-by: Julia Lawall <[email protected]>
Signed-off-by: Vinod Koul <[email protected]>
  • Loading branch information
tapaswenipathak authored and Vinod Koul committed Mar 5, 2015
1 parent bfde98b commit 26f7af3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/dma/dma-jz4740.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 26f7af3

Please sign in to comment.