aboutsummaryrefslogtreecommitdiff
path: root/hw/vfio
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2023-02-13 18:01:44 +0100
committerThomas Huth <thuth@redhat.com>2023-02-27 09:15:38 +0100
commit4b447883ede2d75960f2c02856e68710d6155268 (patch)
tree46d67b2a4c8f0265a7728bcbf3d0ced6bb8b6a78 /hw/vfio
parent0cea1f62a872c22af362acab05beb947a1fdee77 (diff)
downloadqemu-4b447883ede2d75960f2c02856e68710d6155268.zip
qemu-4b447883ede2d75960f2c02856e68710d6155268.tar.gz
qemu-4b447883ede2d75960f2c02856e68710d6155268.tar.bz2
hw/vfio/ccw: Remove pointless S390CCWDevice variable
QOM parenthood relationship is: VFIOCCWDevice -> S390CCWDevice -> CcwDevice -> DeviceState No need to double-cast, call CCW_DEVICE() on VFIOCCWDevice. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Eric Farman <farman@linux.ibm.com> Message-Id: <20230213170145.45666-6-philmd@linaro.org> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'hw/vfio')
-rw-r--r--hw/vfio/ccw.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/vfio/ccw.c b/hw/vfio/ccw.c
index 2ea7b4a..cd66b66 100644
--- a/hw/vfio/ccw.c
+++ b/hw/vfio/ccw.c
@@ -314,8 +314,7 @@ static void vfio_ccw_io_notifier_handler(void *opaque)
{
VFIOCCWDevice *vcdev = opaque;
struct ccw_io_region *region = vcdev->io_region;
- S390CCWDevice *cdev = S390_CCW_DEVICE(vcdev);
- CcwDevice *ccw_dev = CCW_DEVICE(cdev);
+ CcwDevice *ccw_dev = CCW_DEVICE(vcdev);
SubchDev *sch = ccw_dev->sch;
SCHIB *schib = &sch->curr_status;
SCSW s;