mmc: queue: delete mmc_req_is_special()
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 18 May 2017 09:29:36 +0000 (11:29 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 20 Jun 2017 08:30:19 +0000 (10:30 +0200)
commit cdf8a6fb48882651049e468e6b16956fb83db86c
"mmc: block: Introduce queue semantics"
deleted the last user of mmc_req_is_special() and it was
a horrible hack to classify requests as "special" or
"not special" to begin with, so delete the helper.

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

index 8c76e7118c95b85953fbb98f2307dd11ce432410..dfe481a8b5edfde4ccf1e99da2c4ba91ce008f69 100644 (file)
@@ -12,14 +12,6 @@ static inline struct mmc_queue_req *req_to_mmc_queue_req(struct request *rq)
        return blk_mq_rq_to_pdu(rq);
 }
 
-static inline bool mmc_req_is_special(struct request *req)
-{
-       return req &&
-               (req_op(req) == REQ_OP_FLUSH ||
-                req_op(req) == REQ_OP_DISCARD ||
-                req_op(req) == REQ_OP_SECURE_ERASE);
-}
-
 struct task_struct;
 struct mmc_blk_data;
 struct mmc_blk_ioc_data;