if ((sr_config_list(drivers[i], SR_CONF_DEVICE_OPTIONS,
(const void **)&hwopts, NULL) == SR_OK) && hwopts)
for (int j = 0; hwopts[j]; j++)
if ((sr_config_list(drivers[i], SR_CONF_DEVICE_OPTIONS,
(const void **)&hwopts, NULL) == SR_OK) && hwopts)
for (int j = 0; hwopts[j]; j++)