diff options
author | Souptick Joarder <jrdr.linux@gmail.com> | 2021-01-16 11:40:00 +0300 |
---|---|---|
committer | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2021-01-27 23:48:23 +0300 |
commit | 5b2d6d2d602068ae0568f990e850ad80e1f701d3 (patch) | |
tree | e10dabee4b8204dc7db1a8e91d23d044ba6cf94a | |
parent | 50886234e846bbf2cbf14a86c727e5fc309fdf25 (diff) | |
download | linux-5b2d6d2d602068ae0568f990e850ad80e1f701d3.tar.xz |
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>
-rw-r--r-- | arch/mips/kernel/cacheinfo.c | 4 |
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; |