]> git.baikalelectronics.ru Git - kernel.git/commit
ste_dma40: Move an assignment in d40_prep_desc()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 17 Sep 2016 13:54:12 +0000 (15:54 +0200)
committerVinod Koul <vinod.koul@intel.com>
Mon, 26 Sep 2016 17:36:18 +0000 (23:06 +0530)
commitaa0c45d8e84b6824a58b8f80a09c7a346ffe0acf
tree8d3cb974a698f594de618d6426f1acc8ac910f5b
parent4eb0767cd95aadeccb0c5b601812c1863cf38b40
ste_dma40: Move an assignment in d40_prep_desc()

Move one assignment for the local variable "cfg" so that its setting
will only be performed after a call of the function "d40_desc_get"
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