Commit 55460a8a authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jens Axboe

mspro_block: remove pointless prep_fn

This driver will never see non-fs requests, and doesn't do anything
else in the prep_fn.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent cf22f802
...@@ -827,18 +827,6 @@ static void mspro_block_start(struct memstick_dev *card) ...@@ -827,18 +827,6 @@ static void mspro_block_start(struct memstick_dev *card)
spin_unlock_irqrestore(&msb->q_lock, flags); spin_unlock_irqrestore(&msb->q_lock, flags);
} }
static int mspro_block_prepare_req(struct request_queue *q, struct request *req)
{
if (req->cmd_type != REQ_TYPE_FS) {
blk_dump_rq_flags(req, "MSPro unsupported request");
return BLKPREP_KILL;
}
req->rq_flags |= RQF_DONTPREP;
return BLKPREP_OK;
}
static void mspro_block_submit_req(struct request_queue *q) static void mspro_block_submit_req(struct request_queue *q)
{ {
struct memstick_dev *card = q->queuedata; struct memstick_dev *card = q->queuedata;
...@@ -1228,7 +1216,6 @@ static int mspro_block_init_disk(struct memstick_dev *card) ...@@ -1228,7 +1216,6 @@ static int mspro_block_init_disk(struct memstick_dev *card)
} }
msb->queue->queuedata = card; msb->queue->queuedata = card;
blk_queue_prep_rq(msb->queue, mspro_block_prepare_req);
blk_queue_bounce_limit(msb->queue, limit); blk_queue_bounce_limit(msb->queue, limit);
blk_queue_max_hw_sectors(msb->queue, MSPRO_BLOCK_MAX_PAGES); blk_queue_max_hw_sectors(msb->queue, MSPRO_BLOCK_MAX_PAGES);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment