[Spice-devel] [PATCH spice-gtk 08/14] usb: remove useless assignment

Marc-André Lureau marcandre.lureau at gmail.com
Thu Apr 24 08:50:56 PDT 2014


The struct is g_new0() already.
---
 gtk/usb-device-manager.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/gtk/usb-device-manager.c b/gtk/usb-device-manager.c
index af993aa..c87efd5 100644
--- a/gtk/usb-device-manager.c
+++ b/gtk/usb-device-manager.c
@@ -1565,9 +1565,6 @@ void spice_usb_device_manager_disconnect_device(SpiceUsbDeviceManager *self,
     cbinfo->manager     = self;
     cbinfo->device      = device;
     cbinfo->installer   = installer;
-    cbinfo->cancellable = NULL;
-    cbinfo->callback    = NULL;
-    cbinfo->user_data   = NULL;
 
     spice_win_usb_driver_uninstall_async(installer, device, NULL,
                                          spice_usb_device_manager_drv_uninstall_cb,
-- 
1.8.5.3



More information about the Spice-devel mailing list