All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wang Sheng-Hui <shhuiw@gmail.com>
To: chris.mason@fusionio.com, linux-btrfs@vger.kernel.org
Subject: [PATCH] btrfs-progs: remove redundant value set to path->reada in ctree.c/btrfs_alloc_path
Date: Tue, 14 Aug 2012 12:57:54 +0800	[thread overview]
Message-ID: <5029DAD2.4020805@gmail.com> (raw)

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 

             reply	other threads:[~2012-08-14  4:57 UTC|newest]

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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5029DAD2.4020805@gmail.com \
    --to=shhuiw@gmail.com \
    --cc=chris.mason@fusionio.com \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.