projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
477d7ea
)
Btrfs: remove the useless assignment to *entry in function tree_insert of file extent...
author
Wang Sheng-Hui
<shhuiw@gmail.com>
Fri, 6 Apr 2012 06:35:05 +0000
(14:35 +0800)
committer
Josef 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
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/extent_io.c
b/fs/btrfs/extent_io.c
index fe91305e12fbc0756da6429e4c9e2189740a143f..82b4829f00b8202e23226708e795e1cdc172ed24 100644
(file)
--- 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;