Device in unconfigured state does not have active configuration, but it
does not neccecarily means an error.
Change-Id: I90c581aed25175ff5f76140d33610a5d4b384ff6
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
goto out; //LCOV_EXCL_LINE System Error
}
+ /* unconfigured state */
+ if (cfg_nmb == 0) {
+ config = NULL;
+ goto out;
+ }
+
ret = libusb_get_config_descriptor_by_value(dev->lusb_dev, cfg_nmb, &lcfg_desc);
if (ret < 0) {
ret = translate_error(ret); //LCOV_EXCL_LINE System Error