[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220930031906.4164306-2-yukuai1@huaweicloud.com>
Date: Fri, 30 Sep 2022 11:19:01 +0800
From: Yu Kuai <yukuai1@...weicloud.com>
To: jack@...e.cz, hch@...radead.org, ebiggers@...nel.org,
paolo.valente@...aro.org, axboe@...nel.dk
Cc: linux-block@...r.kernel.org, linux-kernel@...r.kernel.org,
yukuai3@...wei.com, yukuai1@...weicloud.com, yi.zhang@...wei.com
Subject: [PATCH v4 1/6] elevator: remove redundant code in elv_unregister_queue()
From: Yu Kuai <yukuai3@...wei.com>
"elevator_queue *e" is already declared and initialized in the beginning
of elv_unregister_queue().
Signed-off-by: Yu Kuai <yukuai3@...wei.com>
Reviewed-by: Christoph Hellwig <hch@....de>
Reviewed-by: Eric Biggers <ebiggers@...gle.com>
---
block/elevator.c | 2 --
1 file changed, 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);
--
2.31.1
Powered by blists - more mailing lists