summaryrefslogtreecommitdiff
path: root/src/core/swap.c
diff options
context:
space:
mode:
authorStefan Beller <stefanbeller@googlemail.com>2014-01-03 20:33:20 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-01-05 00:43:22 -0500
commit7bb01eff62aa7b612e33fe0e512a4d97862050c4 (patch)
treea0a41b132321c8be3fc630ab8e2aaae0c1762036 /src/core/swap.c
parent4cf8496d0a5e85ec7610d166c5d35df3e6d02d1a (diff)
swap: remove if/else with the same data path
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.
Diffstat (limited to 'src/core/swap.c')
-rw-r--r--src/core/swap.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/core/swap.c b/src/core/swap.c
index e0627db965..6b204df584 100644
--- 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: