fx2lafw: Consistently return SR_ERR_ARG if sdi is needed

This commit is contained in:
Bert Vermeulen 2013-04-18 21:36:25 +02:00
parent c2ec42ce93
commit 38ab8dbec8
1 changed files with 1 additions and 1 deletions

View File

@ -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