dmaengine: jz4740: Remove extra check
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>
This commit is contained in:
parent
bfde98bd76
commit
26f7af37ee
|
@ -343,7 +343,7 @@ static void jz4740_dma_chan_irq(struct jz4740_dmaengine_chan *chan)
|
||||||
{
|
{
|
||||||
spin_lock(&chan->vchan.lock);
|
spin_lock(&chan->vchan.lock);
|
||||||
if (chan->desc) {
|
if (chan->desc) {
|
||||||
if (chan->desc && chan->desc->cyclic) {
|
if (chan->desc->cyclic) {
|
||||||
vchan_cyclic_callback(&chan->desc->vdesc);
|
vchan_cyclic_callback(&chan->desc->vdesc);
|
||||||
} else {
|
} else {
|
||||||
if (chan->next_sg == chan->desc->num_sgs) {
|
if (chan->next_sg == chan->desc->num_sgs) {
|
||||||
|
|
Loading…
Reference in a new issue