chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02a3bcc
)
manager: simplify transaction_abort()
author
Michal Schmidt
<mschmidt@redhat.com>
Thu, 19 Apr 2012 21:23:04 +0000
(23:23 +0200)
committer
Michal Schmidt
<mschmidt@redhat.com>
Fri, 20 Apr 2012 15:12:27 +0000
(17:12 +0200)
This is equivalent.
src/core/manager.c
patch
|
blob
|
history
diff --git
a/src/core/manager.c
b/src/core/manager.c
index aa918f1bd0d0d1cde30c4a69da2358af01564aab..546b3233b0db522bcb69199026525cb06e9112c6 100644
(file)
--- 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));