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