Skip to content
Snippets Groups Projects
Commit 0546858c authored by Yufen Yu's avatar Yufen Yu Committed by Jens Axboe
Browse files

block: get rid of unnecessary local variable


Since whole elevator register is protectd by sysfs_lock, we
don't need extras 'has_elevator'. Just use q->elevator directly.

Signed-off-by: default avatarYufen Yu <yuyufen@huawei.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent f0c6ae09
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment