diff --git a/cmds/receive.c b/cmds/receive.c index da0efcc8..11aa65f0 100644 --- a/cmds/receive.c +++ b/cmds/receive.c @@ -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; diff --git a/cmds/send.c b/cmds/send.c index afe9c5a3..c9dc13a9 100644 --- a/cmds/send.c +++ b/cmds/send.c @@ -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[] = { diff --git a/common/send-utils.c b/common/send-utils.c index e6692e67..125399a1 100644 --- a/common/send-utils.c +++ b/common/send-utils.c @@ -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) -{ -} diff --git a/common/send-utils.h b/common/send-utils.h index dd9876b2..bdb96917 100644 --- a/common/send-utils.h +++ b/common/send-utils.h @@ -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