]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/link-mso19/api.c
Don't check sr_channel_new() return value (always succeeds).
[libsigrok.git] / src / hardware / link-mso19 / api.c
index 5112fe285d2d0103b41e9c1b5f4f4421ce1c63f4..46270ffeb7fed89836e65cd3d295f8f6123b33d8 100644 (file)
@@ -220,9 +220,8 @@ static GSList *scan(GSList *options)
                for (i = 0; i < NUM_CHANNELS; i++) {
                        struct sr_channel *ch;
                        chtype = (i == 0) ? SR_CHANNEL_ANALOG : SR_CHANNEL_LOGIC;
-                       if (!(ch = sr_channel_new(i, chtype, TRUE,
-                                                  mso19_channel_names[i])))
-                               return 0;
+                       ch = sr_channel_new(i, chtype, TRUE,
+                                           mso19_channel_names[i]);
                        sdi->channels = g_slist_append(sdi->channels, ch);
                }