From 5b2d6d2d602068ae0568f990e850ad80e1f701d3 Mon Sep 17 00:00:00 2001 From: Souptick Joarder Date: Sat, 16 Jan 2021 14:10:00 +0530 Subject: mips: cacheinfo: Remove unnecessary increment of level kernel test robot throws below warning -> arch/mips/kernel/cacheinfo.c:112:3: warning: Variable 'level' is modified but its new value is never used. [unreadVariable] Remove unnecessary increment of level at the end. Reported-by: kernel test robot Signed-off-by: Souptick Joarder Reviewed-by: Jiaxun Yang Signed-off-by: Thomas Bogendoerfer --- arch/mips/kernel/cacheinfo.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/mips/kernel/cacheinfo.c b/arch/mips/kernel/cacheinfo.c index 5f9d0ebac558..53d8ea7d36e6 100644 --- a/arch/mips/kernel/cacheinfo.c +++ b/arch/mips/kernel/cacheinfo.c @@ -107,10 +107,8 @@ static int __populate_cache_leaves(unsigned int cpu) level++; } - if (c->tcache.waysize) { + if (c->tcache.waysize) populate_cache(tcache, this_leaf, level, CACHE_TYPE_UNIFIED); - level++; - } this_cpu_ci->cpu_map_populated = true; -- cgit