mirror of
https://github.com/kdave/btrfs-progs
synced 2025-02-06 12:52:01 +00:00
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:
parent
522945efc8
commit
f18dbe2bc6
@ -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;
|
||||
|
@ -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[] = {
|
||||
|
@ -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)
|
||||
{
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user