summaryrefslogtreecommitdiffstats
path: root/src/core/swap.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-11-28 20:24:48 +0100
committerLennart Poettering <lennart@poettering.net>2018-12-07 17:35:32 +0100
commita0a424083f4612bdddedb8680a9b05fc86c14b40 (patch)
tree842d4d8d19add607656b56cbebc0767d52c13b6c /src/core/swap.c
parentswap: don't propagate issues with processing /proc/swaps (diff)
downloadsystemd-a0a424083f4612bdddedb8680a9b05fc86c14b40.tar.xz
systemd-a0a424083f4612bdddedb8680a9b05fc86c14b40.zip
swap: drop return value
We don't actually return any valid 'r' here, let's explicitly return 0 here hence instead.
Diffstat (limited to 'src/core/swap.c')
-rw-r--r--src/core/swap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/swap.c b/src/core/swap.c
index 88fb06153f..277d0791c2 100644
--- a/src/core/swap.c
+++ b/src/core/swap.c
@@ -491,7 +491,7 @@ static int swap_process_new(Manager *m, const char *device, int prio, bool set_f
swap_setup_unit(m, devlink, device, prio, set_flags);
}
- return r;
+ return 0;
}
static void swap_set_state(Swap *s, SwapState state) {