From: Michal Schmidt Date: Thu, 19 Apr 2012 21:23:04 +0000 (+0200) Subject: manager: simplify transaction_abort() X-Git-Tag: v183~249 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=121b3b318042b7fd67ac96601971c1c2f9b77be5;p=systemd manager: simplify transaction_abort() This is equivalent. --- diff --git a/src/core/manager.c b/src/core/manager.c index aa918f1b..546b3233 100644 --- a/src/core/manager.c +++ b/src/core/manager.c @@ -710,12 +710,7 @@ static void transaction_abort(Manager *m) { assert(m); while ((j = hashmap_first(m->transaction_jobs))) - if (j->installed) - transaction_delete_job(m, j, true); - else { - transaction_unlink_job(m, j, true); - job_free(j); - } + transaction_delete_job(m, j, true); assert(hashmap_isempty(m->transaction_jobs));