]> sigrok.org Git - libsigrok.git/blobdiff - src/binary_helpers.c
scpi-dmm: add support to get/set range on Agilent protocol using meters
[libsigrok.git] / src / binary_helpers.c
index 8c1b7b7c8306287f6e8dfbbaa52d2fa9012607fa..9108f5bb7678983e04aad9c753696db4fbbbee0d 100644 (file)
@@ -85,10 +85,6 @@ SR_PRIV int bv_send_analog_channel(const struct sr_dev_inst *sdi, struct sr_chan
        meaning.unit = bac->unit;
        meaning.mqflags = 0;
        meaning.channels = g_slist_append(NULL, ch);
-       if (!meaning.channels) {
-               err = SR_ERR_MALLOC;
-               goto err_out;
-       }
 
        spec.spec_digits = bac->digits;