mmc: block: inline the command abort and start new goto:s
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 1 Feb 2017 12:47:51 +0000 (13:47 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 13 Feb 2017 12:20:57 +0000 (13:20 +0100)
commitdb435505b561c1ca7b72c646dbc060f0c674360c
tree29860b2efc5a1f1ffa85ee18dbfb4361e03cf8bb
parenta04848c75bc02858ba98a7af63637728d033d3e8
mmc: block: inline the command abort and start new goto:s

The goto statements sprinkled over the mmc_blk_issue_rw_rq()
function has grown over the years and makes the code pretty hard
to read.

Inline the calls such that:

goto cmd_abort; ->
mmc_blk_rw_cmd_abort(card, req);
mmc_blk_rw_start_new(mq, card, rqc);
return;

goto start_new_req; ->
mmc_blk_rw_start_new(mq, card, rqc);
return;

After this it is more clear how we exit the do {} while
loop in this function, and it gets possible to split the
code apart.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/block.c