Commit 1d2c0980 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Paul Mundt

dmaengine: shdma: tidyup spin_unlock_bh on sh_chan_xfer_ld_queue

It is not readable that there is any spin_unlock_bh on same function.
Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent c4e0dd78
...@@ -766,10 +766,8 @@ static void sh_chan_xfer_ld_queue(struct sh_dmae_chan *sh_chan) ...@@ -766,10 +766,8 @@ static void sh_chan_xfer_ld_queue(struct sh_dmae_chan *sh_chan)
spin_lock_bh(&sh_chan->desc_lock); spin_lock_bh(&sh_chan->desc_lock);
/* DMA work check */ /* DMA work check */
if (dmae_is_busy(sh_chan)) { if (dmae_is_busy(sh_chan))
spin_unlock_bh(&sh_chan->desc_lock); goto sh_chan_xfer_ld_queue_end;
return;
}
/* Find the first not transferred descriptor */ /* Find the first not transferred descriptor */
list_for_each_entry(desc, &sh_chan->ld_queue, node) list_for_each_entry(desc, &sh_chan->ld_queue, node)
...@@ -783,6 +781,7 @@ static void sh_chan_xfer_ld_queue(struct sh_dmae_chan *sh_chan) ...@@ -783,6 +781,7 @@ static void sh_chan_xfer_ld_queue(struct sh_dmae_chan *sh_chan)
break; break;
} }
sh_chan_xfer_ld_queue_end:
spin_unlock_bh(&sh_chan->desc_lock); spin_unlock_bh(&sh_chan->desc_lock);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment