hantek-dso: Consistently return SR_ERR_ARG if sdi is needed
This commit is contained in:
parent
38ab8dbec8
commit
e2033d4917
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue