]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mm/damon/tests/core-kunit: remove unused ctx in damon_test_split_regions_of()
authorSeongJae Park <sj@kernel.org>
Sat, 1 Nov 2025 18:20:16 +0000 (11:20 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 17 Nov 2025 01:28:35 +0000 (17:28 -0800)
commit80d725f96c44e6e8eff02a9820dbbeef6a52091a
tree9f7c74309aad68e49b653739fb65f7b328266084
parent40b11d1eb19cf5c53a642d35f27fd1eafd9e0caf
mm/damon/tests/core-kunit: remove unused ctx in damon_test_split_regions_of()

damon_test_split_regions_of() dynamically allocates a 'struct damon_ctx'
object, but it is not really being used in the code other than handling
the allocation failure and deallocating it at the end of the function.
Remove the unnecessary allocation and deallocation of the object.

Link: https://lkml.kernel.org/r/20251101182021.74868-23-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: Brendan Higgins <brendan.higgins@linux.dev>
Cc: David Gow <davidgow@google.com>
Cc: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/damon/tests/core-kunit.h