summaryrefslogtreecommitdiffstats
path: root/target/arm/vfp_helper.c
diff options
context:
space:
mode:
authorPeter Maydell2019-07-08 15:11:31 +0200
committerPeter Maydell2019-07-08 15:11:31 +0200
commitc8ead5712486edb5058475fdef2c616857f5056f (patch)
treea631a7aad871a7f3ca44fa8ad2ab2e056d19a874 /target/arm/vfp_helper.c
parenttests/migration-test: Fix read off end of aarch64_kernel array (diff)
downloadqemu-c8ead5712486edb5058475fdef2c616857f5056f.tar.gz
qemu-c8ead5712486edb5058475fdef2c616857f5056f.tar.xz
qemu-c8ead5712486edb5058475fdef2c616857f5056f.zip
hw/arm/sbsa-ref: Remove unnecessary check for secure_sysmem == NULL
In the virt machine, we support TrustZone being either present or absent, and so the code must deal with the secure_sysmem pointer possibly being NULL. In the sbsa-ref machine, TrustZone is always present, but some code and comments copied from virt still treat it as possibly not being present. This causes Coverity to complain (CID 1407287) that we check secure_sysmem for being NULL after an unconditional dereference. Simplify the code so that instead of initializing the variable to NULL, unconditionally assigning it, and then testing it for NULL, we just initialize it correctly in the variable declaration and then assume it to be non-NULL. We also delete a comment which only applied to the non-TrustZone config. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-id: 20190704142004.7150-1-peter.maydell@linaro.org Tested-by: Radosław Biernacki <radoslaw.biernacki@linaro.org> Reviewed-by: Radosław Biernacki <radoslaw.biernacki@linaro.org>
Diffstat (limited to 'target/arm/vfp_helper.c')
0 files changed, 0 insertions, 0 deletions