diff options
author | Yu Kuai <yukuai3@huawei.com> | 2022-10-19 20:15:13 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-10-23 18:59:17 -0600 |
commit | 6d9f4cf125585ebf0718abcf5ce9ca898877c6d2 (patch) | |
tree | 25d326d1ffb6f5562e02a102a4cc54af43bf0c3e /block | |
parent | 074501bce3c5b4200a94b9937d189b3e3e2dbc98 (diff) | |
download | linux-6d9f4cf125585ebf0718abcf5ce9ca898877c6d2.tar.gz linux-6d9f4cf125585ebf0718abcf5ce9ca898877c6d2.tar.bz2 linux-6d9f4cf125585ebf0718abcf5ce9ca898877c6d2.zip |
elevator: remove redundant code in elv_unregister_queue()
"elevator_queue *e" is already declared and initialized in the beginning
of elv_unregister_queue().
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Biggers <ebiggers@google.com>
Link: https://lore.kernel.org/r/20221019121518.3865235-2-yukuai1@huaweicloud.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
-rw-r--r-- | block/elevator.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/block/elevator.c b/block/elevator.c index bd71f0fc4e4b..20e70fd3f77f 100644 --- a/block/elevator.c +++ b/block/elevator.c @@ -524,8 +524,6 @@ void elv_unregister_queue(struct request_queue *q) lockdep_assert_held(&q->sysfs_lock); if (e && e->registered) { - struct elevator_queue *e = q->elevator; - kobject_uevent(&e->kobj, KOBJ_REMOVE); kobject_del(&e->kobj); |