Skip to contentSkip to conversation

btrfs-progs: remove redundant value set to path->reada in ctree.c/btrfs_alloc_path

PATCH New Wang Sheng-Hui 1 participant 1 message Aug 14, 2012 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 btrfs-progs: remove redundant value set to path->reada in ctree.c/btrfs_alloc_path

btrfs_init_path has init the path to 0s.
No need to set ->reada 0 after path init.

---
 ctree.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
ctree.c +2 -3
index 2d86b1e..a04e0da 100644
@@ -43,10 +43,9 @@ struct btrfs_path *btrfs_alloc_path(void)
 {
 	struct btrfs_path *path;
 	path = kmalloc(sizeof(struct btrfs_path), GFP_NOFS);
-	if (path) {
+	if (path)
 		btrfs_init_path(path);
-		path->reada = 0;
-	}
+
 	return path;
 }
 
Signature · 1 line
1.7.1