From: Bert Vermeulen Date: Thu, 18 Apr 2013 19:36:25 +0000 (+0200) Subject: fx2lafw: Consistently return SR_ERR_ARG if sdi is needed X-Git-Tag: dsupstream~104 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=38ab8dbec8b1944e06dd3a809229b106c5e628df;p=libsigrok.git fx2lafw: Consistently return SR_ERR_ARG if sdi is needed --- diff --git a/hardware/fx2lafw/fx2lafw.c b/hardware/fx2lafw/fx2lafw.c index eaa218b0..54ded2a6 100644 --- a/hardware/fx2lafw/fx2lafw.c +++ b/hardware/fx2lafw/fx2lafw.c @@ -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