Skip to content

Commit 413ec80

Browse files
ColinIanKingaxboe
authored andcommitted
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>
1 parent 180dccb commit 413ec80

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/block/loop.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ static inline int queue_on_root_worker(struct cgroup_subsys_state *css)
820820

821821
static void loop_queue_work(struct loop_device *lo, struct loop_cmd *cmd)
822822
{
823-
struct rb_node **node = &(lo->worker_tree.rb_node), *parent = NULL;
823+
struct rb_node **node, *parent = NULL;
824824
struct loop_worker *cur_worker, *worker = NULL;
825825
struct work_struct *work;
826826
struct list_head *cmd_list;

0 commit comments

Comments
 (0)