]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
mmc: block: inline command abortions
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 24 Jan 2017 10:17:55 +0000 (11:17 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 13 Feb 2017 12:20:39 +0000 (13:20 +0100)
commitda0dbaffe354043bb0cd61c00c650c819d104b29
tree872d6bc4d4381dedd725f21ac7f6009bbbab154e
parent6fb85d658308952142da6abb4e066dd22dd48c01
mmc: block: inline command abortions

Setting rqc to NULL followed by a goto to cmd_abort is just a way
to do unconditional abort without starting any new command.
Inline the calls to mmc_blk_rw_cmd_abort() and return immediately
in those cases.

Add some comments to the code flow so it is clear that this is
where the asynchronous requests come back in and the result of
them gets handled.

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