summaryrefslogtreecommitdiff
path: root/mkfs.c
diff options
context:
space:
mode:
authorHubert Kario <kario@wit.edu.pl>2011-06-29 19:54:35 +0200
committerChris Mason <chris.mason@oracle.com>2011-10-25 09:18:59 -0400
commit3c3a13bf3f34c8cd4b5ffc5b38655b080f2f7568 (patch)
tree5618d83ce6288cd7989df8a7ef7e668dd41c03aa /mkfs.c
parentdb9831e4f4b975ef852027eabeb75099a8b64f60 (diff)
remove unused variables
fixes compilation warnings with gcc 4.6.0 20110429 Signed-off-by: Hubert Kario <kario@wit.edu.pl> Signed-off-by: Hugo Mills <hugo@carfax.org.uk>
Diffstat (limited to 'mkfs.c')
-rw-r--r--mkfs.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/mkfs.c b/mkfs.c
index f2953dbd..2ad180a1 100644
--- a/mkfs.c
+++ b/mkfs.c
@@ -1055,7 +1055,6 @@ static int make_image(char *source_dir, struct btrfs_root *root, int out_fd)
struct btrfs_trans_handle *trans;
struct stat root_st;
- int root_len;
struct directory_name_entry dir_head;
@@ -1065,8 +1064,6 @@ static int make_image(char *source_dir, struct btrfs_root *root, int out_fd)
goto fail;
}
- root_len = strlen(source_dir);
-
INIT_LIST_HEAD(&dir_head.list);
trans = btrfs_start_transaction(root, 1);