diff mbox

[4/9] Btrfs-progs: nuke redundant zeroing in __list_subvol_search()

Message ID 1343987338-10612-6-git-send-email-Anand.Jain@oracle.com (mailing list archive)
State New, archived
Headers show

Commit Message

Anand Jain Aug. 3, 2012, 9:48 a.m. UTC
From: Ilya Dryomov <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 mbox

Patch

diff --git a/btrfs-list.c b/btrfs-list.c
index 5c21cac..911b238 100644
--- a/btrfs-list.c
+++ b/btrfs-list.c
@@ -570,10 +570,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;