dmaengine: PL08x: Refactor pl08x_getbytes_chan() to lower indentation
authorTomasz Figa <tomasz.figa@gmail.com>
Sun, 11 Aug 2013 17:59:13 +0000 (19:59 +0200)
committerVinod Koul <vinod.koul@intel.com>
Mon, 2 Sep 2013 06:19:56 +0000 (11:49 +0530)
commit68a7faa2006c022468adec11549b8b5e0a0f284a
tree2e9a5aa59ff459d0372870ccbf74ee4b633201ea
parent39ff86130a36cb5779102832dec39abecebfc316
dmaengine: PL08x: Refactor pl08x_getbytes_chan() to lower indentation

Further patch will introduce support for PL080S, which requires some
things to be done conditionally, thus increasing indentation level of
some functions even more.

This patch reduces indentation level of pl08x_getbytes_chan() function
by inverting several conditions and returning from function wherever
possible.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/amba-pl08x.c