damon_start() was able to fail while keeping the first context running. mtier hence stops the first context in the case. damon_start() is refactored to avoid that. The error handling is no longer necessary. Remove it. Signed-off-by: SJ Park --- samples/damon/mtier.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/samples/damon/mtier.c b/samples/damon/mtier.c index e567f4edd80ea..90881e8bd441f 100644 --- a/samples/damon/mtier.c +++ b/samples/damon/mtier.c @@ -193,8 +193,6 @@ static int damon_sample_mtier_start(void) if (!err) return 0; - if (damon_is_running(ctxs[0])) - damon_stop(ctxs, 1); damon_destroy_ctx(ctxs[0]); damon_destroy_ctx(ctxs[1]); return err; -- 2.47.3