]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/beaglelogic/api.c
Don't check sr_channel_new() return value (always succeeds).
[libsigrok.git] / src / hardware / beaglelogic / api.c
index a703adf351cd2e1a1e875dc93d90b646f77ec7fe..46abde3d881aa8e16a89e8272e7fb58efe5c9c19 100644 (file)
@@ -136,9 +136,8 @@ static GSList *scan(GSList *options)
 
        /* Fill the channels */
        for (i = 0; i < maxch; i++) {
-               if (!(ch = sr_channel_new(i, SR_CHANNEL_LOGIC, TRUE,
-                               beaglelogic_channel_names[i])))
-                       return NULL;
+               ch = sr_channel_new(i, SR_CHANNEL_LOGIC, TRUE,
+                               beaglelogic_channel_names[i]);
                sdi->channels = g_slist_append(sdi->channels, ch);
        }