]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/memstick/core/mspro_block.c
block: remove wrappers for request type/flags
[net-next-2.6.git] / drivers / memstick / core / mspro_block.c
index 8327e248520ac654596b41560fb51f4d913eedcb..56645408d225f26bb032026d40095a6f6be16853 100644 (file)
@@ -805,7 +805,8 @@ static void mspro_block_start(struct memstick_dev *card)
 
 static int mspro_block_prepare_req(struct request_queue *q, struct request *req)
 {
-       if (!blk_fs_request(req) && !blk_pc_request(req)) {
+       if (req->cmd_type != REQ_TYPE_FS &&
+           req->cmd_type != REQ_TYPE_BLOCK_PC) {
                blk_dump_rq_flags(req, "MSPro unsupported request");
                return BLKPREP_KILL;
        }