]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0ae8b125537cf89de42035e6dfc0edbbcea57d65
tree2e9a5aa59ff459d0372870ccbf74ee4b633201ea
parent263ffa62e89c29e544a0337f484e0b6b117d36b4
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