[U-Boot] [PATCH] fs: btrfs: Remove unused debug code left from development

Marek BehĂșn marek.behun at nic.cz
Mon Mar 19 11:02:11 UTC 2018


Signed-off-by: Marek Behun <marek.behun at nic.cz>
---
 fs/btrfs/btrfs.c |  4 ----
 fs/btrfs/ctree.c | 10 ----------
 2 files changed, 14 deletions(-)

diff --git a/fs/btrfs/btrfs.c b/fs/btrfs/btrfs.c
index 4140e2bc20..b01b111bfb 100644
--- a/fs/btrfs/btrfs.c
+++ b/fs/btrfs/btrfs.c
@@ -221,7 +221,3 @@ int btrfs_uuid(char *uuid_str)
 #endif
 	return -ENOSYS;
 }
-
-/*
-		btrfs_list_subvols();
-*/
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c
index b13ecb9376..c15fca3417 100644
--- a/fs/btrfs/ctree.c
+++ b/fs/btrfs/ctree.c
@@ -45,16 +45,6 @@ static int generic_bin_search(void *addr, int item_size, struct btrfs_key *key,
 	int low = 0, high = max, mid, ret;
 	struct btrfs_key *tmp;
 
-	if (0) {
-		int i;
-		printf("\tsearching %llu %i\n", key->objectid, key->type);
-		for (i = 0; i < max; ++i) {
-			tmp = (struct btrfs_key *) ((u8 *) addr + i*item_size);
-			printf("\t\t%llu %i\n", tmp->objectid, tmp->type);
-		}
-		printf("\n");
-	}
-
 	while (low < high) {
 		mid = (low + high) / 2;
 
-- 
2.16.1



More information about the U-Boot mailing list