mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 05:44:45 +01:00
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>
This commit is contained in:
parent
97e8ba31b8
commit
dc1dd13d44
1 changed files with 0 additions and 3 deletions
|
|
@ -69,9 +69,6 @@ queue_requests_store(struct gendisk *disk, const char *page, size_t count)
|
|||
unsigned int memflags;
|
||||
struct request_queue *q = disk->queue;
|
||||
|
||||
if (!queue_is_mq(q))
|
||||
return -EINVAL;
|
||||
|
||||
ret = queue_var_store(&nr, page, count);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue