[RFC PATCH 05/11] mm/damon/reclaaim: ignore damon_stop() return value

From: SJ Park

Date: Sat Jul 04 2026 - 14:13:53 EST


damon_stop() return value is guaranteed to be 0. Ignore it.

Signed-off-by: SJ Park <sj@xxxxxxxxxx>
---
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