[Spice-devel] [PATCH spice-gtk 2/2] fixup! usb-redir: define interfaces to support emulated devices

Frediano Ziglio fziglio at redhat.com
Fri Jul 26 14:42:20 UTC 2019


Remove unneeded address field from UsbCreateDeviceParameters
---
 src/usb-backend.c | 1 -
 src/usb-backend.h | 2 --
 2 files changed, 3 deletions(-)

diff --git a/src/usb-backend.c b/src/usb-backend.c
index 9c2605a0..e47bca35 100644
--- a/src/usb-backend.c
+++ b/src/usb-backend.c
@@ -914,7 +914,6 @@ gboolean spice_usb_backend_create_device(SpiceUsbBackend *be,
     dev->device_info.device_type = dev_type;
     dev->ref_count = 1;
 
-    param->address = address;
     if (be->dev_init[dev_type](be, dev, param, &edev)) {
         spice_usb_backend_device_unref(dev);
         return FALSE;
diff --git a/src/usb-backend.h b/src/usb-backend.h
index 8a04ed0d..76c552f5 100644
--- a/src/usb-backend.h
+++ b/src/usb-backend.h
@@ -102,8 +102,6 @@ void spice_usb_backend_return_write_data(SpiceUsbBackendChannel *ch, void *data)
 typedef struct UsbCreateDeviceParameters
 {
     GError *error;
-    uint32_t    address;
-    uint32_t    reserved;
     union
     {
         struct
-- 
2.20.1



More information about the Spice-devel mailing list