summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2017-02-01 13:47:51 +0100
committerUlf Hansson <ulf.hansson@linaro.org>2017-02-13 13:20:57 +0100
commitdb435505b561c1ca7b72c646dbc060f0c674360c (patch)
tree29860b2efc5a1f1ffa85ee18dbfb4361e03cf8bb /security
parenta04848c75bc02858ba98a7af63637728d033d3e8 (diff)
downloadop-kernel-dev-db435505b561c1ca7b72c646dbc060f0c674360c.zip
op-kernel-dev-db435505b561c1ca7b72c646dbc060f0c674360c.tar.gz
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>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud