]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5b162796c641cc801cfba6f8a9f803237c7f91ff
tree0f84590fdc5bafc8afa05e762e792ec1e37895eb
parented306b56f111d370f84fd80456ee7cf3284e7a1f
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