hw/mips/malta: Fix minor dead code issue
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 12 May 2023 14:43:38 +0000 (15:43 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 12 May 2023 14:43:38 +0000 (15:43 +0100)
commit9d8299bf93eb7c2ea5fd64716352b9454fa7fe8c
treef210e1dbb0bd230400f89b0fedba0566425b8f0d
parentd6359e150dbdf84f67add786473fd277a9a442bb
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>
hw/mips/malta.c