ste_dma40: Move two assignments in d40_prep_sg()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 17 Sep 2016 13:40:05 +0000 (15:40 +0200)
committerVinod Koul <vinod.koul@intel.com>
Mon, 26 Sep 2016 17:36:18 +0000 (23:06 +0530)
commit444fa14746c1c19384f91490ed4c19c67517949e
tree5d4cd6cf9da9f92657305be94ea9de39b1398aa3
parent78c6e1a5943b464c47e864ca1092287fa4aa219b
ste_dma40: Move two assignments in d40_prep_sg()

Move assignments for two local variables so that their 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