linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] btrfs-progs: remove redundant value set to path->reada in ctree.c/btrfs_alloc_path
@ 2012-08-14  4:54 Wang Sheng-Hui
  0 siblings, 0 replies; 2+ messages in thread
From: Wang Sheng-Hui @ 2012-08-14  4:54 UTC (permalink / raw)
  To: Chris Mason, linux-btrfs

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

Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com>
---
 ctree.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/ctree.c b/ctree.c
index 2d86b1e..a04e0da 100644
--- a/ctree.c
+++ b/ctree.c
@@ -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;
 }
 
-- 
1.7.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread
* [PATCH] btrfs-progs: remove redundant value set to path->reada in ctree.c/btrfs_alloc_path
@ 2012-08-14  4:57 Wang Sheng-Hui
  0 siblings, 0 replies; 2+ messages in thread
From: Wang Sheng-Hui @ 2012-08-14  4:57 UTC (permalink / raw)
  To: chris.mason, linux-btrfs

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

Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com>
---
 ctree.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/ctree.c b/ctree.c
index 2d86b1e..a04e0da 100644
--- a/ctree.c
+++ b/ctree.c
@@ -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;
 }
 
-- 1.7.1 

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-08-14  4:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-14  4:54 [PATCH] btrfs-progs: remove redundant value set to path->reada in ctree.c/btrfs_alloc_path Wang Sheng-Hui
  -- strict thread matches above, loose matches on Subject: below --
2012-08-14  4:57 Wang Sheng-Hui

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).