Skip to content

Commit

Permalink
lib/deploy: Simplify deployment creation
Browse files Browse the repository at this point in the history
Minor cleanup; we were declaring a superfluous variable.
  • Loading branch information
jlebon committed Aug 13, 2020
1 parent ebd50d0 commit 346dc19
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/libostree/ostree-sysroot-deploy.c
Original file line number Diff line number Diff line change
Expand Up @@ -2699,10 +2699,8 @@ sysroot_initialize_deployment (OstreeSysroot *self,
cancellable, error))
return FALSE;

g_autofree char *new_bootcsum = NULL;
g_autoptr(OstreeDeployment) new_deployment =
ostree_deployment_new (0, osname, revision, new_deployserial,
new_bootcsum, -1);
ostree_deployment_new (0, osname, revision, new_deployserial, NULL, -1);
ostree_deployment_set_origin (new_deployment, origin);

/* Check out the userspace tree onto the filesystem */
Expand Down

0 comments on commit 346dc19

Please sign in to comment.