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 <lkp@intel.com>
Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com>
Reviewed-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
This commit is contained in:
Souptick Joarder 2021-01-16 14:10:00 +05:30 committed by Thomas Bogendoerfer
parent 50886234e8
commit 5b2d6d2d60

View File

@ -107,10 +107,8 @@ static int __populate_cache_leaves(unsigned int cpu)
level++; level++;
} }
if (c->tcache.waysize) { if (c->tcache.waysize)
populate_cache(tcache, this_leaf, level, CACHE_TYPE_UNIFIED); populate_cache(tcache, this_leaf, level, CACHE_TYPE_UNIFIED);
level++;
}
this_cpu_ci->cpu_map_populated = true; this_cpu_ci->cpu_map_populated = true;