From: Stefan Beller Date: Fri, 3 Jan 2014 19:33:20 +0000 (+0100) Subject: swap: remove if/else with the same data path X-Git-Tag: v209~542 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=7bb01eff62aa7b612e33fe0e512a4d97862050c4;p=elogind.git 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. --- diff --git a/src/core/swap.c b/src/core/swap.c index e0627db96..6b204df58 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: