]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mm/damon/tests/core-kunit: remove unnecessary damon_ctx variable on damon_test_split_at()
authorSeongJae Park <sj@kernel.org>
Sat, 1 Nov 2025 18:20:15 +0000 (11:20 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 17 Nov 2025 01:28:35 +0000 (17:28 -0800)
commit40b11d1eb19cf5c53a642d35f27fd1eafd9e0caf
tree833a19f534f862e7e1641148e5c7cdf28a8ea0a3
parent7d808bf13943f4c6a6142400bffe14267f6dc997
mm/damon/tests/core-kunit: remove unnecessary damon_ctx variable on damon_test_split_at()

damon_test_split_at() 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-22-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