commit | 0546858c59fb90122ca8c820e6aa221925a13bd8 | [log] [tgz] |
---|---|---|
author | Yufen Yu <yuyufen@huawei.com> | Thu Oct 08 23:26:32 2020 -0400 |
committer | Jens Axboe <axboe@kernel.dk> | Fri Oct 09 12:34:06 2020 -0600 |
tree | 7666ed621ff7392017b51cf98946df76294c8d4e | |
parent | f0c6ae09db1d39cbcf35776f889e0f7f861493d2 [diff] |
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: Yufen Yu <yuyufen@huawei.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>