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)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 24 Apr 2017 19:42:06 +0000 (21:42 +0200)
commit5744d50d2d9e7efdae4b5d13cd71f49256ada6ba
tree7fa89eb791eb78fd95e2b4e288eba8f2f9f155ca
parentf34bdd2f7e2881090f566a2f93b0d8e1189091e0
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>
drivers/mmc/core/core.c