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>
This commit is contained in:
parent
0cea1f62a8
commit
4b447883ed
@ -314,8 +314,7 @@ static void vfio_ccw_io_notifier_handler(void *opaque)
|
|||||||
{
|
{
|
||||||
VFIOCCWDevice *vcdev = opaque;
|
VFIOCCWDevice *vcdev = opaque;
|
||||||
struct ccw_io_region *region = vcdev->io_region;
|
struct ccw_io_region *region = vcdev->io_region;
|
||||||
S390CCWDevice *cdev = S390_CCW_DEVICE(vcdev);
|
CcwDevice *ccw_dev = CCW_DEVICE(vcdev);
|
||||||
CcwDevice *ccw_dev = CCW_DEVICE(cdev);
|
|
||||||
SubchDev *sch = ccw_dev->sch;
|
SubchDev *sch = ccw_dev->sch;
|
||||||
SCHIB *schib = &sch->curr_status;
|
SCHIB *schib = &sch->curr_status;
|
||||||
SCSW s;
|
SCSW s;
|
||||||
|
Loading…
Reference in New Issue
Block a user