fx2lafw: Consistently return SR_ERR_ARG if sdi is needed

Этот коммит содержится в:
Bert Vermeulen 2013-04-18 21:36:25 +02:00
родитель c2ec42ce93
Коммит 38ab8dbec8
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -592,7 +592,7 @@ static int config_get(int id, GVariant **data, const struct sr_dev_inst *sdi)
switch (id) {
case SR_CONF_CONN:
if (!sdi || !sdi->conn)
return SR_ERR;
return SR_ERR_ARG;
usb = sdi->conn;
if (usb->address == 255)
/* Device still needs to re-enumerate after firmware