Btrfs: remove the useless assignment to *entry in function tree_insert of file extent...
authorWang Sheng-Hui <shhuiw@gmail.com>
Fri, 6 Apr 2012 06:35:05 +0000 (14:35 +0800)
committerJosef Bacik <josef@redhat.com>
Fri, 11 May 2012 14:56:40 +0000 (10:56 -0400)
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>
fs/btrfs/extent_io.c

index fe91305e12fbc0756da6429e4c9e2189740a143f..82b4829f00b8202e23226708e795e1cdc172ed24 100644 (file)
@@ -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;