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

Snir Sheriber ssheribe at redhat.com
Thu Aug 1 15:04:40 UTC 2019


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

On 8/1/19 4:04 PM, Frediano Ziglio wrote:
> Signed-off-by: Frediano Ziglio <fziglio at 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;
>           }


More information about the Spice-devel mailing list