]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/manson-hcs-3xxx/api.c
Don't check sr_channel_new() return value (always succeeds).
[libsigrok.git] / src / hardware / manson-hcs-3xxx / api.c
index d287067b195db92b1745274d5368859b91199c19..6355d004fc2eb2565f19d2d27a5923d142b4bf5b 100644 (file)
@@ -163,10 +163,7 @@ static GSList *scan(GSList *options)
        sdi->conn = serial;
        sdi->driver = di;
 
-       if (!(ch = sr_channel_new(0, SR_CHANNEL_ANALOG, TRUE, "CH1"))) {
-               sr_err("Failed to create channel.");
-               goto exit_err;
-       }
+       ch = sr_channel_new(0, SR_CHANNEL_ANALOG, TRUE, "CH1");
        sdi->channels = g_slist_append(sdi->channels, ch);
 
        devc = g_malloc0(sizeof(struct dev_context));