summary refs log tree commit diff stats
path: root/include/qemu/compiler.h
diff options
context:
space:
mode:
authorBALATON Zoltan <balaton@eik.bme.hu>2021-01-08 23:07:38 +0100
committerDavid Gibson <david@gibson.dropbear.id.au>2021-01-19 10:20:29 +1100
commitf17969db719ef563d2f7a1b62ea5dd5087ad774a (patch)
tree6c9a4842f40a4ea1019b00a53e33ea18fbe2f4e5 /include/qemu/compiler.h
parentdbc2758921dac90c97453d601c717fb1a5768fd5 (diff)
downloadfocaccia-qemu-f17969db719ef563d2f7a1b62ea5dd5087ad774a.tar.gz
focaccia-qemu-f17969db719ef563d2f7a1b62ea5dd5087ad774a.zip
sam460ex: Use type cast macro instead of simple cast
Use the PCI_BUS type cast macro to convert result of qdev_get_child_bus().
Also remove the check for NULL afterwards which should not be needed
because sysbus_create_simple() uses error_abort and we create the PCI
host object here that's expected to have a PCI bus so this shouldn't
fail. Even if it would fail that would be due to a programmer error so
an error message is not necessary.

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Message-Id: <a4dc55b56eed3ce899b7bf9835b980a114c52598.1610143658.git.balaton@eik.bme.hu>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'include/qemu/compiler.h')
0 files changed, 0 insertions, 0 deletions