[spice-gtk,v2,2/3] usb-device-manager: Remove isochronous field from _SpiceUsbDevice

Submitted by Frediano Ziglio on Sept. 2, 2019, 10:35 a.m.

Details

Message ID 20190902103520.29210-2-fziglio@redhat.com
State Accepted
Headers show
Series "Series without cover letter" ( rev: 1 ) in Spice

Not browsing as part of any series.

Commit Message

Frediano Ziglio Sept. 2, 2019, 10:35 a.m.
Report directly value from SpiceUsbBackendDevice.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
---
 src/usb-device-manager.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Patch hide | download patch | download mbox

diff --git a/src/usb-device-manager.c b/src/usb-device-manager.c
index b3db5de6..b85b20de 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;
 };
 
 
@@ -1489,7 +1488,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;
 }
@@ -1538,7 +1536,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