summaryrefslogtreecommitdiffstats
path: root/hw/arm/xlnx-zynqmp.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé2020-03-05 17:09:14 +0100
committerPeter Maydell2020-03-05 17:09:14 +0100
commit5ca0e6fec591fd07add84f1f28b5c95a494b8401 (patch)
tree89f9431435c44f3ef3f2dec6a30ddb0263a8582e /hw/arm/xlnx-zynqmp.c
parenthw/arm/smmu-common: a fix to smmu_find_smmu_pcibus (diff)
downloadqemu-5ca0e6fec591fd07add84f1f28b5c95a494b8401.tar.gz
qemu-5ca0e6fec591fd07add84f1f28b5c95a494b8401.tar.xz
qemu-5ca0e6fec591fd07add84f1f28b5c95a494b8401.zip
hw/arm/smmu-common: Simplify smmu_find_smmu_pcibus() logic
The smmu_find_smmu_pcibus() function was introduced (in commit cac994ef43b) in a code format that could return an incorrect pointer, which was then fixed by the previous commit. We could have avoided this by writing the if() statement differently. Do it now, in case this function is re-used. The code is easier to review (harder to miss bugs). Acked-by: Eric Auger <eric.auger@redhat.com> Reviewed-by: Peter Xu <peterx@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/arm/xlnx-zynqmp.c')
0 files changed, 0 insertions, 0 deletions