]> git.ipfire.org Git - thirdparty/u-boot.git/commit
powerpc: fix dead default for SYS_L3_SIZE
authorJulian Braha <julianbraha@gmail.com>
Tue, 14 Apr 2026 23:18:33 +0000 (00:18 +0100)
committerPeng Fan <peng.fan@nxp.com>
Wed, 6 May 2026 02:28:35 +0000 (10:28 +0800)
commit34127dff316085df27fefe040f83756602183099
tree214a10fb3843c281d4aebc3bbdbd5520db627d54
parentae8987f4e690f397f507c4b1efabd68b3ed08db6
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")
Signed-off-by: Julian Braha <julianbraha@gmail.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/powerpc/cpu/mpc85xx/Kconfig