ste_dma40: Move an assignment in d40_lcla_allocate()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 17 Sep 2016 06:24:46 +0000 (08:24 +0200)
committerVinod Koul <vinod.koul@intel.com>
Mon, 26 Sep 2016 17:36:16 +0000 (23:06 +0530)
commitabac5bac829cc9d8cf178344b4f34b2264927672
tree0f84590fdc5bafc8afa05e762e792ec1e37895eb
parentaae32ec6e39a513f2049b2d37825957971d4f7f1
ste_dma40: Move an assignment in d40_lcla_allocate()

Move one assignment for the local variable "ret" so that its setting
will only be performed after corresponding data processing succeeded
by this function.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/ste_dma40.c