]> sigrok.org Git - libsigrok.git/commitdiff
binary_helpers: Drop unnecessary malloc check.
authorUwe Hermann <redacted>
Thu, 4 Jun 2020 22:09:11 +0000 (00:09 +0200)
committerUwe Hermann <redacted>
Thu, 4 Jun 2020 22:25:26 +0000 (00:25 +0200)
(as per HACKING)

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;