damon_stop() return value is guaranteed to be 0. Ignore it. Signed-off-by: SJ Park --- mm/damon/reclaim.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mm/damon/reclaim.c b/mm/damon/reclaim.c index 6469b25cc34f9..09e941d75f67d 100644 --- a/mm/damon/reclaim.c +++ b/mm/damon/reclaim.c @@ -332,8 +332,10 @@ static int damon_reclaim_turn(bool on) { int err; - if (!on) - return damon_stop(&ctx, 1); + if (!on) { + damon_stop(&ctx, 1); + return 0; + } err = damon_reclaim_apply_parameters(); if (err) -- 2.47.3