summaryrefslogtreecommitdiff
path: root/mkfs
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2017-09-29 15:24:54 +0200
committerDavid Sterba <dsterba@suse.com>2017-10-06 13:23:46 +0200
commit530ca513078d2e8682647da707681a024fa3120b (patch)
treeb2138e33edf1271f1e53cf005697bad9e0541b79 /mkfs
parentd07e349800b8a100e049465666b2382613281a8c (diff)
btrfs-progs: mkfs: remove unused function
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'mkfs')
-rw-r--r--mkfs/main.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/mkfs/main.c b/mkfs/main.c
index 5987a963..1b4cabc1 100644
--- a/mkfs/main.c
+++ b/mkfs/main.c
@@ -795,20 +795,6 @@ end:
return ret;
}
-static char *make_path(const char *dir, const char *name)
-{
- char *path;
-
- path = malloc(strlen(dir) + strlen(name) + 2);
- if (!path)
- return NULL;
- strcpy(path, dir);
- if (dir[strlen(dir) - 1] != '/')
- strcat(path, "/");
- strcat(path, name);
- return path;
-}
-
static int traverse_directory(struct btrfs_trans_handle *trans,
struct btrfs_root *root, const char *dir_name,
struct directory_name_entry *dir_head)