[Spice-commits] src/usb-device-manager.c

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Aug 1 15:13:38 UTC 2019


 src/usb-device-manager.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit e019a2f06074a4248b42342743374b579f364e68
Author: Frediano Ziglio <fziglio at redhat.com>
Date:   Thu Aug 1 11:06:17 2019 +0100

    usb-device-manager: Remove unused parameter from spice_usb_device_manager_device_match
    
    Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
    Acked-by: Snir Sheriber <ssheribe at redhat.com>

diff --git a/src/usb-device-manager.c b/src/usb-device-manager.c
index 544e568..05c7d97 100644
--- a/src/usb-device-manager.c
+++ b/src/usb-device-manager.c
@@ -733,8 +733,8 @@ static void spice_usb_device_manager_auto_connect_cb(GObject      *gobject,
 }
 
 static gboolean
-spice_usb_device_manager_device_match(SpiceUsbDeviceManager *self, SpiceUsbDevice *device,
-                                      const int bus, const int address)
+spice_usb_device_match(SpiceUsbDevice *device,
+                       const int bus, const int address)
 {
     return (spice_usb_device_get_busnum(device) == bus &&
             spice_usb_device_get_devaddr(device) == address);
@@ -750,7 +750,7 @@ spice_usb_device_manager_find_device(SpiceUsbDeviceManager *self,
 
     for (i = 0; i < priv->devices->len; i++) {
         curr = g_ptr_array_index(priv->devices, i);
-        if (spice_usb_device_manager_device_match(self, curr, bus, address)) {
+        if (spice_usb_device_match(curr, bus, address)) {
             device = curr;
             break;
         }


More information about the Spice-commits mailing list