Unverified Commit 8f52fd7a authored by Jiapeng Chong's avatar Jiapeng Chong Committed by Maxime Ripard
Browse files

kernel/cgroup: Remove the unused variable climit



Variable climit is not effectively used, so delete it.

kernel/cgroup/dmem.c:302:23: warning: variable ‘climit’ set but not used.

Reported-by: default avatarAbaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=13512


Signed-off-by: default avatarJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Acked-by: default avatarTejun Heo <tj@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20250114062804.5092-1-jiapeng.chong@linux.alibaba.com


Signed-off-by: default avatarMaxime Ripard <mripard@kernel.org>
parent 78a5acf5
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -299,7 +299,7 @@ bool dmem_cgroup_state_evict_valuable(struct dmem_cgroup_pool_state *limit_pool,
				      bool ignore_low, bool *ret_hit_low)
{
	struct dmem_cgroup_pool_state *pool = test_pool;
	struct page_counter *climit, *ctest;
	struct page_counter *ctest;
	u64 used, min, low;

	/* Can always evict from current pool, despite limits */
@@ -324,7 +324,6 @@ bool dmem_cgroup_state_evict_valuable(struct dmem_cgroup_pool_state *limit_pool,
			{}
	}

	climit = &limit_pool->cnt;
	ctest = &test_pool->cnt;

	dmem_cgroup_calculate_protection(limit_pool, test_pool);