Thread (18 messages) 18 messages, 3 authors, 2012-08-14
STALE5078d

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

From: Anand jain <hidden>
Date: 2012-08-03 09:51:34
Subsystem: the rest · Maintainer: Linus Torvalds

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 --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;
 
-- 
1.7.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help