summaryrefslogtreecommitdiffstats
path: root/src/core/swap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/swap.c')
-rw-r--r--src/core/swap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/swap.c b/src/core/swap.c
index 6dc6bca34b..2196793ad1 100644
--- a/src/core/swap.c
+++ b/src/core/swap.c
@@ -1282,9 +1282,8 @@ static int swap_process_proc_swaps(Manager *m) {
}
static int swap_dispatch_io(sd_event_source *source, int fd, uint32_t revents, void *userdata) {
- Manager *m = userdata;
+ Manager *m = ASSERT_PTR(userdata);
- assert(m);
assert(revents & EPOLLPRI);
return swap_process_proc_swaps(m);