]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/saleae-logic16/api.c
Don't check sr_channel_new() return value (always succeeds).
[libsigrok.git] / src / hardware / saleae-logic16 / api.c
index 21ccd557b69a6865e8d1a6962f221d41cf9c647a..c30900b2ccdea4abe111d61c8bee27de0aa763dc 100644 (file)
@@ -206,9 +206,8 @@ static GSList *scan(GSList *options)
                sdi->connection_id = g_strdup(connection_id);
 
                for (j = 0; channel_names[j]; 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);
                }