Skip to content

Commit

Permalink
libzfs_sendrecv: Simplify out guid temporary
Browse files Browse the repository at this point in the history
De-clutter the clode and make it clear the guid is only used here.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ryan Moeller <freqlabs@FreeBSD.org>
Closes #12967
  • Loading branch information
Ryan Moeller authored and behlendorf committed Feb 2, 2022
1 parent 01a0039 commit 1488e82
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/libzfs/libzfs_sendrecv.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,16 +191,14 @@ fsavl_create(nvlist_t *fss)
while ((snapelem =
nvlist_next_nvpair(snaps, snapelem)) != NULL) {
fsavl_node_t *fn;
uint64_t guid;

guid = fnvpair_value_uint64(snapelem);
if ((fn = malloc(sizeof (fsavl_node_t))) == NULL) {
fsavl_destroy(fsavl);
return (NULL);
}
fn->fn_nvfs = nvfs;
fn->fn_snapname = nvpair_name(snapelem);
fn->fn_guid = guid;
fn->fn_guid = fnvpair_value_uint64(snapelem);

/*
* Note: if there are multiple snaps with the
Expand Down

0 comments on commit 1488e82

Please sign in to comment.