summaryrefslogtreecommitdiff
path: root/drivers/mmc/card
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2016-11-18 15:36:14 +0300
committerUlf Hansson <ulf.hansson@linaro.org>2016-11-29 11:05:03 +0300
commitf2818bff37b65bbf05fb2a948f591ff67986e733 (patch)
treec263f61deea53b47836b32aab77e61ef1981f69c /drivers/mmc/card
parent6e628dad6553cf00634edff9b63d167e2304115e (diff)
downloadlinux-f2818bff37b65bbf05fb2a948f591ff67986e733.tar.xz
mmc: block: use mmc_req_is_special()
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>
Diffstat (limited to 'drivers/mmc/card')
-rw-r--r--drivers/mmc/card/block.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c
index 49c2a2be7bb8..903f2a160709 100644
--- a/drivers/mmc/card/block.c
+++ b/drivers/mmc/card/block.c
@@ -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))