Windows: fix Clang warnings about unused assignations
authorPete Batard <pete@akeo.ie>
Wed, 28 Mar 2012 00:02:02 +0000 (01:02 +0100)
committerPete Batard <pete@akeo.ie>
Wed, 28 Mar 2012 10:47:24 +0000 (11:47 +0100)
libusb/os/threads_windows.c
libusb/os/windows_usb.c

index 8a29920..fe2bfc1 100644 (file)
@@ -99,7 +99,6 @@ int usbi_cond_destroy(usbi_cond_t *cond) {
                prev_pos = pos;
        }
        free(prev_pos);
-       prev_pos = pos = NULL;
 
        return 0;
 }
index 0ae66e9..6552ed6 100644 (file)
@@ -1183,7 +1183,7 @@ static int set_composite_interface(struct libusb_context* ctx, struct libusb_dev
  */
 static int windows_get_device_list(struct libusb_context *ctx, struct discovered_devs **_discdevs)
 {
-       struct discovered_devs *discdevs = *_discdevs;
+       struct discovered_devs *discdevs;
        HDEVINFO dev_info = { 0 };
        char* usb_class[2] = {"USB", "NUSB3"};
        SP_DEVINFO_DATA dev_info_data;
@@ -1262,7 +1262,6 @@ static int windows_get_device_list(struct libusb_context *ctx, struct discovered
                        safe_free(dev_interface_details);
                        safe_free(dev_interface_path);
                        safe_free(dev_id_path);
-                       session_id = 0;
                        priv = parent_priv = NULL;
                        dev = parent_dev = NULL;