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:
|
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| Platform | ||
| board-boston.its.S | ||
| board-ingenic.c | ||
| board-jaguar2.its.S | ||
| board-luton.its.S | ||
| board-marduk.its.S | ||
| board-ni169445.its.S | ||
| board-ocelot.c | ||
| board-ocelot.its.S | ||
| board-ranchu.c | ||
| board-sead3.c | ||
| board-serval.its.S | ||
| board-xilfpga.its.S | ||
| init.c | ||
| irq.c | ||
| proc.c | ||
| vmlinux.its.S | ||
| yamon-dt.c | ||