mips: cacheinfo: Remove unnecessary increment of level
PATCH 1/1 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.
--- arch/mips/kernel/cacheinfo.c | 1 - 1 file changed, 1 deletion(-)
arch/mips/kernel/cacheinfo.c +0 -1
@@ -109,7 +109,6 @@ static int __populate_cache_leaves(unsigned int cpu)if (c->tcache.waysize) {populate_cache (tcache, this_leaf, level,CACHE_TYPE_UNIFIED ); - level++; } this_cpu_ci->cpu_map_populated = true;
Signature · 1 line
1.9.1
Quoted 9 lines · Souptick Joarder
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]>
Quoted 16 lines
--- arch/mips/kernel/cacheinfo.c | 1 - 1 file changed, 1 deletion(-)arch/mips/kernel/cacheinfo.c +0
-1@@ -109,7 +109,6 @@ static int __populate_cache_leaves(unsigned int cpu)if (c->tcache.waysize) {populate_cache (tcache, this_leaf, level,CACHE_TYPE_UNIFIED ); - level++; } this_cpu_ci->cpu_map_populated = true;
Thomas Bogendoerfer
maintainerQuoted 18 lines · Souptick Joarder
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]>--- arch/mips/kernel/cacheinfo.c | 1 - 1 file changed, 1 deletion(-)arch/mips/kernel/cacheinfo.c +0
-0
arch/mips/kernel/cacheinfo.c static int __populate_cache_leaves(unsigned int cpu) · line 112
Quoted 4 lines
arch/mips/kernel/cacheinfo.c +0
-1@@ -109,7 +109,6 @@ static int __populate_cache_leaves(unsigned int cpu)if (c->tcache.waysize) {populate_cache (tcache, this_leaf, level,CACHE_TYPE_UNIFIED ); - level++;
please remove the no longer needed braces, too.
Thomas.
Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]
Quoted 5 lines · Souptick Joarder
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]
Quoted 7 lines
Remove unnecessary increment of level at the end.
Reported-by kernel test robot <[email protected]>Signed-off-by Souptick Joarder <[email protected]>--- arch/mips/kernel/cacheinfo.c | 1 - 1 file changed, 1 deletion(-)
applied to mips-next with braces removed.
Thomas.
Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]