]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
swap: fix misplaced comment
authorLennart Poettering <lennart@poettering.net>
Wed, 28 Nov 2018 19:06:55 +0000 (20:06 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 7 Dec 2018 16:35:32 +0000 (17:35 +0100)
src/core/swap.c

index bbcf886458ba20e1b0e10057696f9a5a6ee7d80f..50da43f8a75b09df69b00dab8d745e41a370a650 100644 (file)
@@ -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;