OSDN Git Service

dma: mmp_pdma: refactor unlocking path in lookup_phy()
authorDaniel Mack <zonque@gmail.com>
Sat, 10 Aug 2013 16:52:16 +0000 (18:52 +0200)
committerVinod Koul <vinod.koul@intel.com>
Wed, 14 Aug 2013 08:25:15 +0000 (13:55 +0530)
commit638a542cc450e5dca52c82437d746548c0bcbd8b
treec77d879345998f76165543e5bd8f7546127e1e9d
parent8b298ded902a96cf434738d2a1d83f4a768362ea
dma: mmp_pdma: refactor unlocking path in lookup_phy()

As suggested by Ezequiel GarcĂ­a, release the spinlock at the end of the
function only, and use a goto for the control flow.

Just a minor cleanup.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/mmp_pdma.c