Skip to content

Commit 8f52fd7

Browse files
Jiapeng Chongmripard
authored andcommitted
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 <[email protected]> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=13512 Signed-off-by: Jiapeng Chong <[email protected]> Acked-by: Tejun Heo <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Maxime Ripard <[email protected]>
1 parent 78a5acf commit 8f52fd7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

kernel/cgroup/dmem.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ bool dmem_cgroup_state_evict_valuable(struct dmem_cgroup_pool_state *limit_pool,
299299
bool ignore_low, bool *ret_hit_low)
300300
{
301301
struct dmem_cgroup_pool_state *pool = test_pool;
302-
struct page_counter *climit, *ctest;
302+
struct page_counter *ctest;
303303
u64 used, min, low;
304304

305305
/* 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,
324324
{}
325325
}
326326

327-
climit = &limit_pool->cnt;
328327
ctest = &test_pool->cnt;
329328

330329
dmem_cgroup_calculate_protection(limit_pool, test_pool);

0 commit comments

Comments
 (0)