lib/deploy: Simplify deployment creation
authorJonathan Lebon <jonathan@jlebon.com>
Mon, 17 Aug 2020 13:48:11 +0000 (09:48 -0400)
committerJonathan Lebon <jonathan@jlebon.com>
Mon, 17 Aug 2020 13:48:57 +0000 (09:48 -0400)
Minor cleanup; we were declaring a superfluous variable.

src/libostree/ostree-sysroot-deploy.c

index 0179873b8be8340360833e57710eb0ad19a28acf..4b678890f943862a71fa2b6ece77e2a4ac271119 100644 (file)
@@ -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 */