summaryrefslogtreecommitdiffstats
path: root/drivers/block/loop.c
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2022-01-13 01:14:32 +0100
committerJens Axboe <axboe@kernel.dk>2022-01-13 21:00:32 +0100
commit413ec8057bc3d368574abd05dd27e747063b2f59 (patch)
tree55114b4f2be2860949a4b1ec463614b93745f424 /drivers/block/loop.c
parentblk-mq: fix tag_get wait task can't be awakened (diff)
downloadlinux-413ec8057bc3d368574abd05dd27e747063b2f59.tar.xz
linux-413ec8057bc3d368574abd05dd27e747063b2f59.zip
loop: remove redundant initialization of pointer node
The pointer node is being initialized with a value that is never read, it is being re-assigned the same value a little futher on. Remove the redundant initialization. Cleans up clang scan warning: drivers/block/loop.c:823:19: warning: Value stored to 'node' during its initialization is never read [deadcode.DeadStores] Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Link: https://lore.kernel.org/r/20220113001432.1331871-1-colin.i.king@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/loop.c')
-rw-r--r--drivers/block/loop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/loop.c b/drivers/block/loop.c
index b1b05c45c07c..01cbbfc4e9e2 100644
--- a/drivers/block/loop.c
+++ b/drivers/block/loop.c
@@ -820,7 +820,7 @@ static inline int queue_on_root_worker(struct cgroup_subsys_state *css)
static void loop_queue_work(struct loop_device *lo, struct loop_cmd *cmd)
{
- struct rb_node **node = &(lo->worker_tree.rb_node), *parent = NULL;
+ struct rb_node **node, *parent = NULL;
struct loop_worker *cur_worker, *worker = NULL;
struct work_struct *work;
struct list_head *cmd_list;