hantek-dso: Consistently return SR_ERR_ARG if sdi is needed

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

View File

@ -409,12 +409,10 @@ static int config_get(int id, GVariant **data, const struct sr_dev_inst *sdi)
struct sr_usb_dev_inst *usb;
char str[128];
(void)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