hw/dma/xlnx_csu_dma: Run trivial checks early in realize()
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Thu, 19 Aug 2021 16:34:20 +0000 (18:34 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 26 Aug 2021 16:01:59 +0000 (17:01 +0100)
commit348ba7bede1513f7e5aba0b755380d2ff1720192
tree2af7c68cd1709835b7d6760f11495337b1af4035
parent34a3a71db619c46f2a9ab76257d296d9c8b43aeb
hw/dma/xlnx_csu_dma: Run trivial checks early in realize()

If some property are not set, we'll return indicating a failure,
so it is pointless to allocate / initialize some fields too early.
Move the trivial checks earlier in realize().

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-id: 20210819163422.2863447-3-philmd@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/dma/xlnx_csu_dma.c