From: Uwe Hermann Date: Thu, 4 Jun 2020 22:09:11 +0000 (+0200) Subject: binary_helpers: Drop unnecessary malloc check. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=ef2196712c2960c1824bd6afaf326d3621090cc3;p=libsigrok.git binary_helpers: Drop unnecessary malloc check. (as per HACKING) --- diff --git a/src/binary_helpers.c b/src/binary_helpers.c index 8c1b7b7c..9108f5bb 100644 --- a/src/binary_helpers.c +++ b/src/binary_helpers.c @@ -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;