mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-07 14:14:35 +00:00
swap: remove if/else with the same data path
This was introduced ine1770af812(2012-02-03, swap: replace failure boolean by result enum). This just removes unneeded lines of code, no functional change. (cherry picked from commit7bb01eff62)
This commit is contained in:
committed by
Colin Guthrie
parent
d9149a1f37
commit
753aeaee0b
+1
-4
@@ -959,10 +959,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:
|
||||
|
||||
Reference in New Issue
Block a user