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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Report directly value from SpiceUsbBackendDevice.

Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
---
 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

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]