mirror of https://gitee.com/openkylin/linux.git
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:
parent
50886234e8
commit
5b2d6d2d60
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue