summaryrefslogtreecommitdiff
path: root/drivers/mmc/core/block.h
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2017-01-24 11:17:57 +0100
committerUlf Hansson <ulf.hansson@linaro.org>2017-02-13 13:20:40 +0100
commitdf0615889651321712b0b429780617d35c1ed963 (patch)
treeb635bf6aace8efeeecad1f4de80b45dde959f096 /drivers/mmc/core/block.h
parent7d552a48089b6a24b65abe9c49a184bae8364abe (diff)
mmc: block: stop passing around pointless return values
The mmc_blk_issue_rq() function is called in exactly one place in queue.c and there the return value is ignored. So the functions called from that function that also meticulously return 0/1 do so for no good reason. Error reporting on the asynchronous requests are done upward to the block layer when the requests are eventually completed or fail, which may happen during the flow of the mmc_blk_issue_* functions directly (for "special commands") or later, when an asynchronous read/write request is completed. The issuing functions do not give rise to errors on their own, and there is nothing to return back to the caller in queue.c. Drop all return values and make the function return void. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/core/block.h')
-rw-r--r--drivers/mmc/core/block.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/core/block.h b/drivers/mmc/core/block.h
index 00b7483f2d6e..860ca7c8df86 100644
--- a/drivers/mmc/core/block.h
+++ b/drivers/mmc/core/block.h
@@ -4,6 +4,6 @@
struct mmc_queue;
struct request;
-int mmc_blk_issue_rq(struct mmc_queue *mq, struct request *req);
+void mmc_blk_issue_rq(struct mmc_queue *mq, struct request *req);
#endif