]> err.no Git - systemd/commitdiff
manager: simplify transaction_abort()
authorMichal Schmidt <mschmidt@redhat.com>
Thu, 19 Apr 2012 21:23:04 +0000 (23:23 +0200)
committerMichal Schmidt <mschmidt@redhat.com>
Fri, 20 Apr 2012 15:12:27 +0000 (17:12 +0200)
This is equivalent.

src/core/manager.c

index aa918f1bd0d0d1cde30c4a69da2358af01564aab..546b3233b0db522bcb69199026525cb06e9112c6 100644 (file)
@@ -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));