[Spice-devel] [PATCH spice-gtk 2/3] usb-device-manager: Remove isochronous field from _SpiceUsbDevice
Frediano Ziglio
fziglio at redhat.com
Thu Jul 25 13:43:52 UTC 2019
Report directly value from SpiceUsbBackendDevice.
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
src/usb-device-manager.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/usb-device-manager.c b/src/usb-device-manager.c
index a530be9e..bf1c23bd 100644
--- a/src/usb-device-manager.c
+++ b/src/usb-device-manager.c
@@ -123,7 +123,6 @@ enum {
struct _SpiceUsbDevice {
SpiceUsbBackendDevice *bdev;
gint ref;
- gboolean isochronous;
};
@@ -1485,7 +1484,6 @@ static SpiceUsbDevice *spice_usb_device_new(SpiceUsbBackendDevice *bdev)
info->ref = 1;
info->bdev = spice_usb_backend_device_ref(bdev);
- info->isochronous = spice_usb_backend_device_isoch(bdev);
return info;
}
@@ -1534,7 +1532,7 @@ gboolean spice_usb_device_is_isochronous(const SpiceUsbDevice *info)
{
g_return_val_if_fail(info != NULL, 0);
- return info->isochronous;
+ return spice_usb_backend_device_isoch(info->bdev);
}
#ifdef G_OS_WIN32
--
2.20.1
More information about the Spice-devel
mailing list