btrfs-progs: remove empty subvol_uuid_search_finit

After the uuid search fallback code has been removed, the finit helper
has become empty and can be removed.

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2021-09-30 19:56:32 +02:00
parent 522945efc8
commit f18dbe2bc6
4 changed files with 0 additions and 7 deletions

View File

@ -1154,7 +1154,6 @@ out:
rctx->root_path = NULL;
rctx->dest_dir_path = NULL;
free(dest_dir_full_path);
subvol_uuid_search_finit(&rctx->sus);
if (rctx->mnt_fd != -1) {
close(rctx->mnt_fd);
rctx->mnt_fd = -1;

View File

@ -420,7 +420,6 @@ static void free_send_info(struct btrfs_send *sctx)
}
free(sctx->root_path);
sctx->root_path = NULL;
subvol_uuid_search_finit(&sctx->sus);
}
static const char * const cmd_send_usage[] = {

View File

@ -376,7 +376,3 @@ int subvol_uuid_search_init(int mnt_fd, struct subvol_uuid_search *s)
return 0;
}
void subvol_uuid_search_finit(struct subvol_uuid_search *s)
{
}

View File

@ -48,7 +48,6 @@ struct subvol_uuid_search {
};
int subvol_uuid_search_init(int mnt_fd, struct subvol_uuid_search *s);
void subvol_uuid_search_finit(struct subvol_uuid_search *s);
/*
* Search for a subvolume by given type (received uuid, root id, path), returns
* pointer to newly allocated struct subvol_info or NULL in case it's not found