]> git.karo-electronics.de Git - linux-beck.git/commitdiff
mmc: block: use mmc_req_is_special()
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 18 Nov 2016 12:36:14 +0000 (13:36 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 29 Nov 2016 08:05:03 +0000 (09:05 +0100)
Instead of open coding the check for the same thing that
the helper checks: use the helper.

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

index 49c2a2be7bb83e77f76572aba7cd36e3ac6288a1..903f2a16070959ddbcbf5822eb7a77e8808eed56 100644 (file)
@@ -1736,9 +1736,7 @@ static u8 mmc_blk_prep_packed_list(struct mmc_queue *mq, struct request *req)
                    !IS_ALIGNED(blk_rq_sectors(next), 8))
                        break;
 
-               if (req_op(next) == REQ_OP_DISCARD ||
-                   req_op(next) == REQ_OP_SECURE_ERASE ||
-                   req_op(next) == REQ_OP_FLUSH)
+               if (mmc_req_is_special(next))
                        break;
 
                if (rq_data_dir(cur) != rq_data_dir(next))