swap: drop return value
We don't actually return any valid 'r' here, let's explicitly return 0 here hence instead.
This commit is contained in:
+1
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user