From: Ilya Dryomov <idryomov@gmail.com>
To: linux-btrfs@vger.kernel.org
Cc: idryomov@gmail.com
Subject: [PATCH 1/3] Btrfs-progs: nuke redundant zeroing in __list_subvol_search()
Date: Mon, 12 Mar 2012 20:05:45 +0200 [thread overview]
Message-ID: <1331575547-5796-2-git-send-email-idryomov@gmail.com> (raw)
In-Reply-To: <1331575547-5796-1-git-send-email-idryomov@gmail.com>
There's no need to zero out things twice.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
---
btrfs-list.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/btrfs-list.c b/btrfs-list.c
index 5f4a9be..44a73de 100644
--- a/btrfs-list.c
+++ b/btrfs-list.c
@@ -569,10 +569,6 @@ static int __list_subvol_search(int fd, struct root_lookup *root_lookup)
root_lookup_init(root_lookup);
memset(&args, 0, sizeof(args));
- root_lookup_init(root_lookup);
-
- memset(&args, 0, sizeof(args));
-
/* search in the tree of tree roots */
sk->tree_id = 1;
--
1.7.9.1
next prev parent reply other threads:[~2012-03-12 18:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-12 18:05 [PATCH 0/3] Btrfs-progs: fix 'subvol get-default' command Ilya Dryomov
2012-03-12 18:05 ` Ilya Dryomov [this message]
2012-03-12 18:05 ` [PATCH 2/3] Btrfs-progs: refactor resolve_root() function a bit Ilya Dryomov
2012-03-12 18:05 ` [PATCH 3/3] Btrfs-progs: bring 'subvol get-default' back in Ilya Dryomov
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=1331575547-5796-2-git-send-email-idryomov@gmail.com \
--to=idryomov@gmail.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 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).