Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f2818bff authored by Linus Walleij's avatar Linus Walleij Committed by Ulf Hansson
Browse files

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: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 6e628dad
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -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))
		    !IS_ALIGNED(blk_rq_sectors(next), 8))
			break;
			break;


		if (req_op(next) == REQ_OP_DISCARD ||
		if (mmc_req_is_special(next))
		    req_op(next) == REQ_OP_SECURE_ERASE ||
		    req_op(next) == REQ_OP_FLUSH)
			break;
			break;


		if (rq_data_dir(cur) != rq_data_dir(next))
		if (rq_data_dir(cur) != rq_data_dir(next))