aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSouptick Joarder <[email protected]>2021-01-16 14:10:00 +0530
committerThomas Bogendoerfer <[email protected]>2021-01-27 21:48:23 +0100
commit5b2d6d2d602068ae0568f990e850ad80e1f701d3 (patch)
treee10dabee4b8204dc7db1a8e91d23d044ba6cf94a
parent50886234e846bbf2cbf14a86c727e5fc309fdf25 (diff)
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 <[email protected]> Signed-off-by: Souptick Joarder <[email protected]> Reviewed-by: Jiaxun Yang <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
-rw-r--r--arch/mips/kernel/cacheinfo.c4
1 files changed, 1 insertions, 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;