diff options
author | Christoph Hellwig <hch@lst.de> | 2017-01-31 10:57:24 -0500 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-01-31 16:00:10 -0500 |
commit | 261c83c1a9e5b74e41037cc804e8b9ae21623ddd (patch) | |
tree | fa83fce9257b2cee4a171e4791319eaf322258ac /drivers/mmc/core/queue.c | |
parent | 68b568c797c0a93bd1f2e107a6022350d096154e (diff) |
mmc: remove pointless request type check in mmc_prep_request
The block layer won't send requests the driver isn't asking for,
so remove this check.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/mmc/core/queue.c')
-rw-r--r-- | drivers/mmc/core/queue.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/mmc/core/queue.c b/drivers/mmc/core/queue.c index a6496d8027bc..033f641eb8b7 100644 --- a/drivers/mmc/core/queue.c +++ b/drivers/mmc/core/queue.c | |||
@@ -30,15 +30,6 @@ static int mmc_prep_request(struct request_queue *q, struct request *req) | |||
30 | { | 30 | { |
31 | struct mmc_queue *mq = q->queuedata; | 31 | struct mmc_queue *mq = q->queuedata; |
32 | 32 | ||
33 | /* | ||
34 | * We only like normal block requests and discards. | ||
35 | */ | ||
36 | if (req->cmd_type != REQ_TYPE_FS && req_op(req) != REQ_OP_DISCARD && | ||
37 | req_op(req) != REQ_OP_SECURE_ERASE) { | ||
38 | blk_dump_rq_flags(req, "MMC bad request"); | ||
39 | return BLKPREP_KILL; | ||
40 | } | ||
41 | |||
42 | if (mq && (mmc_card_removed(mq->card) || mmc_access_rpmb(mq))) | 33 | if (mq && (mmc_card_removed(mq->card) || mmc_access_rpmb(mq))) |
43 | return BLKPREP_KILL; | 34 | return BLKPREP_KILL; |
44 | 35 | ||