]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/zeroplus-logic-cube/api.c
Don't check sr_channel_new() return value (always succeeds).
[libsigrok.git] / src / hardware / zeroplus-logic-cube / api.c
index 2cf5aaf117bb924e6bbcb62758802a9351b057ed..fa6ef1dc3c76a58ea02c47fb5d3cf412dbe5d999 100644 (file)
@@ -248,9 +248,8 @@ static GSList *scan(GSList *options)
 
                /* Fill in channellist according to this device's profile. */
                for (j = 0; j < devc->num_channels; j++) {
-                       if (!(ch = sr_channel_new(j, SR_CHANNEL_LOGIC, TRUE,
-                                       channel_names[j])))
-                               return NULL;
+                       ch = sr_channel_new(j, SR_CHANNEL_LOGIC, TRUE,
+                                       channel_names[j]);
                        sdi->channels = g_slist_append(sdi->channels, ch);
                }