[spice-gtk] usb-device-manager: Remove unused parameter from spice_usb_device_manager_device_match

Submitted by Frediano Ziglio on Aug. 1, 2019, 1:04 p.m.

Details

Message ID 20190801130426.25562-1-fziglio@redhat.com
State Accepted
Commit e019a2f06074a4248b42342743374b579f364e68
Headers show
Series "usb-device-manager: Remove unused parameter from spice_usb_device_manager_device_match" ( rev: 1 ) in Spice

Not browsing as part of any series.

Commit Message

Frediano Ziglio Aug. 1, 2019, 1:04 p.m.
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
---
 src/usb-device-manager.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Patch hide | download patch | download mbox

diff --git a/src/usb-device-manager.c b/src/usb-device-manager.c
index 0a04b119..426a0cd7 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;
         }

Comments

Acked-by: Snir Sheriber <ssheribe@redhat.com>

On 8/1/19 4:04 PM, Frediano Ziglio wrote:
> Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
> ---
>   src/usb-device-manager.c | 6 +++---
>   1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/src/usb-device-manager.c b/src/usb-device-manager.c
> index 0a04b119..426a0cd7 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;
>           }