]> sigrok.org Git - libsigrok.git/blobdiff - hardware/saleae-logic/saleae-logic.c
sr: Fix some TODOs, improve comments/docs.
[libsigrok.git] / hardware / saleae-logic / saleae-logic.c
index ebe02b062d41e115c0953f938acd3e8ecb42f15c..140af8b9a11e9702ae2f5e4991bb67f1b91faa6d 100644 (file)
@@ -460,7 +460,7 @@ static int hw_dev_close(int dev_index)
 
        if (!(sdi = sr_dev_inst_get(dev_insts, dev_index))) {
                sr_err("logic: %s: sdi was NULL", __func__);
-               return SR_ERR; /* TODO: SR_ERR_ARG? */
+               return SR_ERR_BUG;
        }
 
        /* TODO */