Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

blk-mq: remove useless checking in queue_requests_store()

blk_mq_queue_attr_visible() already checked queue_is_mq(), no need to
check this again in queue_requests_store().

Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Reviewed-by: Nilay Shroff <nilay@linux.ibm.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Yu Kuai and committed by
Jens Axboe
dc1dd13d 97e8ba31

-3
-3
block/blk-sysfs.c
··· 69 69 unsigned int memflags; 70 70 struct request_queue *q = disk->queue; 71 71 72 - if (!queue_is_mq(q)) 73 - return -EINVAL; 74 - 75 72 ret = queue_var_store(&nr, page, count); 76 73 if (ret < 0) 77 74 return ret;