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:
4cf8496
)
swap: remove if/else with the same data path
author
Stefan Beller
<stefanbeller@googlemail.com>
Fri, 3 Jan 2014 19:33:20 +0000
(20:33 +0100)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Sun, 5 Jan 2014 05:43:22 +0000
(
00:43
-0500)
This was introduced in
e1770af812
(2012-02-03, swap: replace failure
boolean by result enum).
This just removes unneeded lines of code, no functional change.
src/core/swap.c
patch
|
blob
|
history
diff --git
a/src/core/swap.c
b/src/core/swap.c
index e0627db965ab10f5f47b03f3723445c72931d1c3..6b204df5841d1d682bd2025d7f77786d464431b0 100644
(file)
--- a/
src/core/swap.c
+++ b/
src/core/swap.c
@@
-999,10
+999,7
@@
static void swap_sigchld_event(Unit *u, pid_t pid, int code, int status) {
case SWAP_DEACTIVATING_SIGKILL:
case SWAP_DEACTIVATING_SIGTERM:
- if (f == SWAP_SUCCESS)
- swap_enter_dead(s, f);
- else
- swap_enter_dead(s, f);
+ swap_enter_dead(s, f);
break;
default: