vfio/ap: Remove pointless apdev variable
commit88ceb67a6f9b049e2f0ae3df00862e9d6057a5f0
authorZhenzhong Duan <zhenzhong.duan@intel.com>
Mon, 9 Oct 2023 02:20:47 +0000 (9 10:20 +0800)
committerCédric Le Goater <clg@redhat.com>
Wed, 18 Oct 2023 08:10:49 +0000 (18 10:10 +0200)
tree53c3f1115537c6f07e552744fa190177c06887cf
parentfde4dbb7e61396a38fcc172ab02dbf839b468ebe
vfio/ap: Remove pointless apdev variable

No need to double-cast, call VFIO_AP_DEVICE() on DeviceState.

No functional changes.

Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Reviewed-by: Tony Krowiak <akrowiak@linux.ibm.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/vfio/ap.c