]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/arm/raspi4b: remove redundant check in raspi_add_memory_node
authorOsama Abdelkader <osama.abdelkader@gmail.com>
Tue, 2 Sep 2025 20:08:18 +0000 (22:08 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 16 Sep 2025 16:31:53 +0000 (17:31 +0100)
commitcc2c5027dc755b0b7e2a6531b089e5a239d3e0ce
tree01bc7ae30932821bca493b29dcdea5abc7ca07e9
parent2b5daf79c32656264a23104c0693aa89c528cff8
hw/arm/raspi4b: remove redundant check in raspi_add_memory_node

The if (acells == 0 || scells == 0) check is redundant in
raspi_add_memory_node, since it is already checked in the call
chain, arm_load_dtb. Also the return value of the function is
not checked/used so it's removed.

Signed-off-by: Osama Abdelkader <osama.abdelkader@gmail.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Tested-by: Alex Bennée <alex.bennee@linaro.org>
Message-id: 20250902200818.43305-1-osama.abdelkader@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/raspi4b.c