WSL2-Linux-Kernel/arch/mips/generic
Colin Ian King 255e51da15 MIPS: generic/yamon-dt: fix uninitialized variable error
In the case where fw_getenv returns an error when fetching values
for ememsizea and memsize then variable phys_memsize is not assigned
a variable and will be uninitialized on a zero check of phys_memsize.
Fix this by initializing phys_memsize to zero.

Cleans up cppcheck error:
arch/mips/generic/yamon-dt.c💯7: error: Uninitialized variable: phys_memsize [uninitvar]

Fixes: f41d2430bb ("MIPS: generic/yamon-dt: Support > 256MB of RAM")
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
2021-11-16 09:27:01 +01:00
..
Kconfig MIPS: generic: Allow generating FIT image for Marduk board 2021-08-12 16:01:49 +02:00
Makefile MIPS: generic: Add support for Ingenic SoCs 2020-09-18 16:33:59 +02:00
Platform MIPS: generic: Allow generating FIT image for Marduk board 2021-08-12 16:01:49 +02:00
board-boston.its.S MIPS: generic: Update node names to avoid unit addresses 2021-04-12 16:48:35 +02:00
board-ingenic.c MIPS: ingenic: Unconditionally enable clock of CPU #0 2021-08-29 13:31:02 +02:00
board-jaguar2.its.S MIPS: generic: Update node names to avoid unit addresses 2021-04-12 16:48:35 +02:00
board-luton.its.S MIPS: generic: Update node names to avoid unit addresses 2021-04-12 16:48:35 +02:00
board-marduk.its.S MIPS: generic: Allow generating FIT image for Marduk board 2021-08-12 16:01:49 +02:00
board-ni169445.its.S MIPS: generic: Update node names to avoid unit addresses 2021-04-12 16:48:35 +02:00
board-ocelot.c MIPS: generic: Return true/false (not 1/0) from bool functions 2021-08-12 16:04:17 +02:00
board-ocelot.its.S MIPS: generic: Update node names to avoid unit addresses 2021-04-12 16:48:35 +02:00
board-ranchu.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
board-sead3.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
board-serval.its.S MIPS: generic: Update node names to avoid unit addresses 2021-04-12 16:48:35 +02:00
board-xilfpga.its.S MIPS: generic: Update node names to avoid unit addresses 2021-04-12 16:48:35 +02:00
init.c MIPS: of: Introduce helper function to get DTB 2021-02-04 13:34:51 +01:00
irq.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
proc.c MIPS: generic: Allow boards to set system type 2020-09-18 16:28:56 +02:00
vmlinux.its.S MIPS: generic: Update node names to avoid unit addresses 2021-04-12 16:48:35 +02:00
yamon-dt.c MIPS: generic/yamon-dt: fix uninitialized variable error 2021-11-16 09:27:01 +01:00