hw/misc/macio: Avoid some QOM casts
commitea361fc348a43f5e751351191d8fc09fadd310bf
authorBALATON Zoltan <balaton@eik.bme.hu>
Wed, 18 Jan 2023 00:32:32 +0000 (18 01:32 +0100)
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Mon, 6 Feb 2023 11:41:39 +0000 (6 11:41 +0000)
tree3185235fce0dc4f87687f251bdf478c6a811532b
parent4db4847d83f11a33f08b75836d1116a1188121ca
hw/misc/macio: Avoid some QOM casts

At several places we already have the object pointer with the right
type so we don't need to cast it back and forth. Avoiding these casts
improves readability.

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Message-Id: <67b2d4700879c3b4cd574f1faa1a0d1950b3d0ee.1674001242.git.balaton@eik.bme.hu>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
hw/misc/macio/macio.c