X Tutup
Skip to content

Commit 7bb01ef

Browse files
stefanbellerkeszybz
authored andcommitted
swap: remove if/else with the same data path
This was introduced in e1770af (2012-02-03, swap: replace failure boolean by result enum). This just removes unneeded lines of code, no functional change.
1 parent 4cf8496 commit 7bb01ef

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/core/swap.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -999,10 +999,7 @@ static void swap_sigchld_event(Unit *u, pid_t pid, int code, int status) {
999999
case SWAP_DEACTIVATING_SIGKILL:
10001000
case SWAP_DEACTIVATING_SIGTERM:
10011001

1002-
if (f == SWAP_SUCCESS)
1003-
swap_enter_dead(s, f);
1004-
else
1005-
swap_enter_dead(s, f);
1002+
swap_enter_dead(s, f);
10061003
break;
10071004

10081005
default:

0 commit comments

Comments
 (0)
X Tutup