From: Uwe Hermann Date: Fri, 22 Jun 2018 08:53:03 +0000 (+0200) Subject: rigol-ds: Add missing "return SR_ERR". X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=55bece00aae2a53a0e25a685ee3ca111dc29fd12;p=libsigrok.git rigol-ds: Add missing "return SR_ERR". --- diff --git a/src/hardware/rigol-ds/protocol.c b/src/hardware/rigol-ds/protocol.c index 4a6c6d62..8e129901 100644 --- a/src/hardware/rigol-ds/protocol.c +++ b/src/hardware/rigol-ds/protocol.c @@ -477,10 +477,11 @@ SR_PRIV int rigol_ds_channel_start(const struct sr_dev_inst *sdi) /* Vertical increment. */ if (sr_scpi_get_float(sdi->conn, ":WAV:YINC?", &devc->vert_inc[ch->index]) != SR_OK) - /* Vertical origin. */ - if (sr_scpi_get_float(sdi->conn, ":WAV:YOR?", - &devc->vert_origin[ch->index]) != SR_OK) - return SR_ERR; + return SR_ERR; + /* Vertical origin. */ + if (sr_scpi_get_float(sdi->conn, ":WAV:YOR?", + &devc->vert_origin[ch->index]) != SR_OK) + return SR_ERR; /* Vertical reference. */ if (sr_scpi_get_int(sdi->conn, ":WAV:YREF?", &devc->vert_reference[ch->index]) != SR_OK)