am7xxx: silent a warning enabled by 'sparse' about an uninitialized variable
[libam7xxx.git] / src / am7xxx.c
index 114027e..11c259d 100644 (file)
@@ -464,6 +464,8 @@ static int scan_devices(am7xxx_context *ctx, scan_op op,
                goto out;
        }
 
+       /* everything went fine when building the device list */
+       ret = 0;
 out:
        libusb_free_device_list(list, 1);
        return ret;