mmc: core: move some code in mmc_start_areq()
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 28 Mar 2017 08:40:29 +0000 (10:40 +0200)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:38:15 +0000 (15:38 -0500)
commit86c624e8bbcb698be8c83492020be14a49ac51f5
tree6c21d77864b53565059ecb70a9d7b35537d5c369
parent6968129e8eb7999f07d6b3a058c032a7642937bd
mmc: core: move some code in mmc_start_areq()

"previous" is a better name for the variable storing the previous
asynchronous request, better than the opaque name "data" atleast.
We see that we assign the return status to the returned variable
on all code paths, so we might as well just do that immediately
after calling mmc_finalize_areq().

Reviewed-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
(cherry picked from commit 5744d50d2d9e7efdae4b5d13cd71f49256ada6ba)
drivers/mmc/core/core.c