From: Lennart Poettering Date: Wed, 28 Nov 2018 19:06:55 +0000 (+0100) Subject: swap: fix misplaced comment X-Git-Tag: v240~112^2~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ba6fbb2cee3cafc5b51120021c3dfea002870108;p=thirdparty%2Fsystemd.git swap: fix misplaced comment --- diff --git a/src/core/swap.c b/src/core/swap.c index bbcf886458b..50da43f8a75 100644 --- a/src/core/swap.c +++ b/src/core/swap.c @@ -1160,13 +1160,13 @@ static int swap_dispatch_io(sd_event_source *source, int fd, uint32_t revents, v Swap *swap = SWAP(u); if (!swap->is_active) { - /* This has just been deactivated */ swap_unset_proc_swaps(swap); switch (swap->state) { case SWAP_ACTIVE: + /* This has just been deactivated */ swap_enter_dead(swap, SWAP_SUCCESS); break;