Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=13512
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Acked-by: Tejun Heo <tj@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20250114062804.5092-1-jiapeng.chong@linux.alibaba.com
Signed-off-by: Maxime Ripard <mripard@kernel.org>

authored by

Jiapeng Chong and committed by
Maxime Ripard
8f52fd7a 78a5acf5

+1 -2
+1 -2
kernel/cgroup/dmem.c
··· 299 299 bool ignore_low, bool *ret_hit_low) 300 300 { 301 301 struct dmem_cgroup_pool_state *pool = test_pool; 302 - struct page_counter *climit, *ctest; 302 + struct page_counter *ctest; 303 303 u64 used, min, low; 304 304 305 305 /* Can always evict from current pool, despite limits */ ··· 324 324 {} 325 325 } 326 326 327 - climit = &limit_pool->cnt; 328 327 ctest = &test_pool->cnt; 329 328 330 329 dmem_cgroup_calculate_protection(limit_pool, test_pool);