summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent_io.c
diff options
context:
space:
mode:
authorWang Sheng-Hui <shhuiw@gmail.com>2012-04-06 14:35:05 +0800
committerJosef Bacik <josef@redhat.com>2012-05-11 10:56:40 -0400
commitfd5e62a37cef5b212318c522eac0ecd394b50a19 (patch)
treef25574f8dcb176445baf37f8766edf8a99d87727 /fs/btrfs/extent_io.c
parent477d7eafa9585ded87ee1c6f69638a6baf9d8922 (diff)
downloadblackbird-obmc-linux-fd5e62a37cef5b212318c522eac0ecd394b50a19.tar.gz
blackbird-obmc-linux-fd5e62a37cef5b212318c522eac0ecd394b50a19.zip
Btrfs: remove the useless assignment to *entry in function tree_insert 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>
Diffstat (limited to 'fs/btrfs/extent_io.c')
-rw-r--r--fs/btrfs/extent_io.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index fe91305e12fb..82b4829f00b8 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -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;
OpenPOWER on IntegriCloud