diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2011-06-16 07:08:18 +0200 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-06-16 08:03:43 +0200 |
commit | 1d2c0980262e70f5643df34493ffd7e608282c16 (patch) | |
tree | 758b59b897bb1c5d2dfdd6a025aef899d86d0908 /drivers/dma/shdma.c | |
parent | dmaengine: shdma: add to_sh_dev define (diff) | |
download | linux-1d2c0980262e70f5643df34493ffd7e608282c16.tar.xz linux-1d2c0980262e70f5643df34493ffd7e608282c16.zip |
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: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/dma/shdma.c')
-rw-r--r-- | drivers/dma/shdma.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/dma/shdma.c b/drivers/dma/shdma.c index d2fb16d31bb9..3d22eb82289d 100644 --- a/drivers/dma/shdma.c +++ b/drivers/dma/shdma.c @@ -766,10 +766,8 @@ static void sh_chan_xfer_ld_queue(struct sh_dmae_chan *sh_chan) spin_lock_bh(&sh_chan->desc_lock); /* DMA work check */ - if (dmae_is_busy(sh_chan)) { - spin_unlock_bh(&sh_chan->desc_lock); - return; - } + if (dmae_is_busy(sh_chan)) + goto sh_chan_xfer_ld_queue_end; /* Find the first not transferred descriptor */ 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) break; } +sh_chan_xfer_ld_queue_end: spin_unlock_bh(&sh_chan->desc_lock); } |