Skip to contentSkip to conversation

powerpc: fix dead default for SYS_L3_SIZE

PATCH RESEND Superseded Julian Braha 1 participant 1 message Apr 15 PowerPC

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 powerpc: fix dead default for SYS_L3_SIZE

The 'default ... if SYS_L3_SIZE_512KB' statement is written twice, making the second instance dead code.

Based on the context, I believe the author of the code intended to set a default value of '1048576' when SYS_L3_SIZE_1024KB is set.

This dead code was detected by kconfirm, a static analysis tool for Kconfig.

Fixes b85d75951fe ("powerpc: Migrate SYS_L3_SIZE to Kconfig")
---
 arch/powerpc/cpu/mpc85xx/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/cpu/mpc85xx/Kconfig +1 -1
index 55152ab227e..cb564b32c07 100644
@@ -1375,7 +1375,7 @@ config SYS_L3_SIZE
 	int
 	default 262144 if SYS_L3_SIZE_256KB
 	default 524288 if SYS_L3_SIZE_512KB
-	default 1048576 if SYS_L3_SIZE_512KB
+	default 1048576 if SYS_L3_SIZE_1024KB
 
 config SYS_PPC64
 	bool
Signature · 1 line
2.53.0