summary refs log tree commit diff stats
path: root/hw/acpi/pcihp.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2023-05-12 15:43:38 +0100
committerPeter Maydell <peter.maydell@linaro.org>2023-05-12 15:43:38 +0100
commit9d8299bf93eb7c2ea5fd64716352b9454fa7fe8c (patch)
treef210e1dbb0bd230400f89b0fedba0566425b8f0d /hw/acpi/pcihp.c
parentd6359e150dbdf84f67add786473fd277a9a442bb (diff)
downloadfocaccia-qemu-9d8299bf93eb7c2ea5fd64716352b9454fa7fe8c.tar.gz
focaccia-qemu-9d8299bf93eb7c2ea5fd64716352b9454fa7fe8c.zip
hw/mips/malta: Fix minor dead code issue
Coverity points out (in CID 1508390) that write_bootloader has
some dead code, where we assign to 'p' and then in the following
line assign to it again. This happened as a result of the
refactoring in commit cd5066f8618b.

Fix the dead code by removing the 'void *v' variable entirely and
instead adding a cast when calling bl_setup_gt64120_jump_kernel(), as
we do at its other callsite in write_bootloader_nanomips().

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'hw/acpi/pcihp.c')
0 files changed, 0 insertions, 0 deletions