sysroot: [scan-build] Remove a dead assignment

Just quieting the scan.
This commit is contained in:
Colin Walters 2019-10-14 14:22:12 +00:00
parent f1fdd885ab
commit 51d9aa35a9
1 changed files with 1 additions and 4 deletions

View File

@ -1671,10 +1671,7 @@ ostree_sysroot_simple_write_deployment (OstreeSysroot *sysroot,
/* add it last if no crossover defined (or it's the first deployment in the sysroot) */
if (!added_new)
{
g_ptr_array_add (new_deployments, g_object_ref (new_deployment));
added_new = TRUE;
}
g_ptr_array_add (new_deployments, g_object_ref (new_deployment));
OstreeSysrootWriteDeploymentsOpts write_opts = { .do_postclean = postclean };
if (!ostree_sysroot_write_deployments_with_options (sysroot, new_deployments, &write_opts,