mirror of
https://github.com/torvalds/linux.git
synced 2024-11-29 15:41:36 +00:00
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++;
|
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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user