aboutsummaryrefslogtreecommitdiff
path: root/hw/misc/sifive_u_prci.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/misc/sifive_u_prci.c
parentd6359e150dbdf84f67add786473fd277a9a442bb (diff)
downloadqemu-9d8299bf93eb7c2ea5fd64716352b9454fa7fe8c.zip
qemu-9d8299bf93eb7c2ea5fd64716352b9454fa7fe8c.tar.gz
qemu-9d8299bf93eb7c2ea5fd64716352b9454fa7fe8c.tar.bz2
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/misc/sifive_u_prci.c')
0 files changed, 0 insertions, 0 deletions