Skip to content

Commit

Permalink
Btrfs: remove the useless assignment to *entry in function tree_inser…
Browse files Browse the repository at this point in the history
…t of file extent_io.c

In tree_insert, var *entry is used in the loop only, and is useless
out of the loop. Remove the useless assignment after the loop.

Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com>
  • Loading branch information
Wang Sheng-Hui authored and Josef Bacik committed May 11, 2012
1 parent 477d7ea commit fd5e62a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/btrfs/extent_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ static struct rb_node *tree_insert(struct rb_root *root, u64 offset,
return parent;
}

entry = rb_entry(node, struct tree_entry, rb_node);
rb_link_node(node, parent, p);
rb_insert_color(node, root);
return NULL;
Expand Down

0 comments on commit fd5e62a

Please sign in to comment.