[RFC PATCH v1.1 04/11] mm/damon/sysfs: ignore damon_stop() return value
From: SJ Park
Date: Sun Jul 05 2026 - 12:02:51 EST
damon_stop() return value is guaranteed to be 0. Ignore it.
Signed-off-by: SJ Park <sj@xxxxxxxxxx>
---
mm/damon/sysfs.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/mm/damon/sysfs.c b/mm/damon/sysfs.c
index b65651498e0d1..6d7e36c9e509d 100644
--- a/mm/damon/sysfs.c
+++ b/mm/damon/sysfs.c
@@ -2262,12 +2262,13 @@ static int damon_sysfs_turn_damon_off(struct damon_sysfs_kdamond *kdamond)
{
if (!kdamond->damon_ctx)
return -EINVAL;
- return damon_stop(&kdamond->damon_ctx, 1);
+ damon_stop(&kdamond->damon_ctx, 1);
/*
* To allow users show final monitoring results of already turned-off
* DAMON, we free kdamond->damon_ctx in next
* damon_sysfs_turn_damon_on(), or kdamonds_nr_store()
*/
+ return 0;
}
static int damon_sysfs_damon_call(int (*fn)(void *data),
--
2.47.3