]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/asix-sigma/asix-sigma.c
Don't check sr_channel_new() return value (always succeeds).
[libsigrok.git] / src / hardware / asix-sigma / asix-sigma.c
index c02827461214329deae2c411d9fbe8657ff06bbe..c577ca74686ca58268829c7c457efa35c339b08e 100644 (file)
@@ -386,8 +386,6 @@ static GSList *scan(GSList *options)
        for (i = 0; i < ARRAY_SIZE(channel_names); i++) {
                ch = sr_channel_new(i, SR_CHANNEL_LOGIC, TRUE,
                                    channel_names[i]);
-               if (!ch)
-                       return NULL;
                sdi->channels = g_slist_append(sdi->channels, ch);
        }