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

Commit 4eef39c9 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jens Axboe
Browse files

memstick: don't allow REQ_TYPE_BLOCK_PC requests



There is no code to issue or handle REQ_TYPE_BLOCK_PC request in the
memstick drivers, so remove the bogus conditional.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent c0acf12a
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2002,8 +2002,7 @@ static int msb_bd_getgeo(struct block_device *bdev,

static int msb_prepare_req(struct request_queue *q, struct request *req)
{
	if (req->cmd_type != REQ_TYPE_FS &&
				req->cmd_type != REQ_TYPE_BLOCK_PC) {
	if (req->cmd_type != REQ_TYPE_FS) {
		blk_dump_rq_flags(req, "MS unsupported request");
		return BLKPREP_KILL;
	}
+1 −2
Original line number Diff line number Diff line
@@ -829,8 +829,7 @@ static void mspro_block_start(struct memstick_dev *card)

static int mspro_block_prepare_req(struct request_queue *q, struct request *req)
{
	if (req->cmd_type != REQ_TYPE_FS &&
	    req->cmd_type != REQ_TYPE_BLOCK_PC) {
	if (req->cmd_type != REQ_TYPE_FS) {
		blk_dump_rq_flags(req, "MSPro unsupported request");
		return BLKPREP_KILL;
	}