fx2lafw: Consistently return SR_ERR_ARG if sdi is needed
This commit is contained in:
parent
c2ec42ce93
commit
38ab8dbec8
|
@ -592,7 +592,7 @@ static int config_get(int id, GVariant **data, const struct sr_dev_inst *sdi)
|
||||||
switch (id) {
|
switch (id) {
|
||||||
case SR_CONF_CONN:
|
case SR_CONF_CONN:
|
||||||
if (!sdi || !sdi->conn)
|
if (!sdi || !sdi->conn)
|
||||||
return SR_ERR;
|
return SR_ERR_ARG;
|
||||||
usb = sdi->conn;
|
usb = sdi->conn;
|
||||||
if (usb->address == 255)
|
if (usb->address == 255)
|
||||||
/* Device still needs to re-enumerate after firmware
|
/* Device still needs to re-enumerate after firmware
|
||||||
|
|
Loading…
Reference in New Issue