Re: [PATCH spice-gtk 12/14] win-usb: remove useless function

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

 



ACK

----- Original Message -----
> From: "Marc-André Lureau" <marcandre.lureau@xxxxxxxxx>
> To: spice-devel@xxxxxxxxxxxxxxx
> Sent: Wednesday, April 23, 2014 1:09:17 PM
> Subject:  [PATCH spice-gtk 12/14] win-usb: remove useless	function
> 
> ---
>  gtk/win-usb-driver-install.c | 11 ++---------
>  1 file changed, 2 insertions(+), 9 deletions(-)
> 
> diff --git a/gtk/win-usb-driver-install.c b/gtk/win-usb-driver-install.c
> index 8cca854..bb18ae4 100644
> --- a/gtk/win-usb-driver-install.c
> +++ b/gtk/win-usb-driver-install.c
> @@ -61,20 +61,13 @@ static void spice_win_usb_driver_init(SpiceWinUsbDriver
> *self)
>      self->priv = SPICE_WIN_USB_DRIVER_GET_PRIVATE(self);
>  }
>  
> -static void spice_win_usb_driver_close(SpiceWinUsbDriver *self)
> -{
> -    if (self->priv->handle) {
> -        CloseHandle(self->priv->handle);
> -        self->priv->handle = 0;
> -    }
> -}
> -
>  static void spice_win_usb_driver_finalize(GObject *gobject)
>  {
>      SpiceWinUsbDriver *self = SPICE_WIN_USB_DRIVER(gobject);
>      SpiceWinUsbDriverPrivate *priv = self->priv;
>  
> -    spice_win_usb_driver_close(self);
> +    if (priv->handle)
> +        CloseHandle(priv->handle);
>      g_clear_object(&priv->result);
>  }
>  
> --
> 1.8.5.3
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel@xxxxxxxxxxxxxxxxxxxxx
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
> 
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel





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