]> sigrok.org Git - libsigrok.git/commitdiff
generic-dmm: cosmetics
authorBert Vermeulen <redacted>
Sun, 2 Sep 2012 13:39:56 +0000 (15:39 +0200)
committerBert Vermeulen <redacted>
Sun, 2 Sep 2012 13:42:56 +0000 (15:42 +0200)
hardware/genericdmm/api.c

index ab987b1c9c3b10bba6a509315092baa6b01396df..e83bce16ea967b18da4ca37c0f9bced91fba107c 100644 (file)
@@ -298,7 +298,6 @@ static int clear_instances(void)
                if (devc->profile) {
                        switch (devc->profile->transport) {
                        case DMM_TRANSPORT_USBHID:
-                               /* TODO */
                                sr_usb_dev_inst_free(devc->usb);
                                break;
                        case DMM_TRANSPORT_SERIAL:
@@ -465,7 +464,6 @@ static int hw_dev_open(struct sr_dev_inst *sdi)
                ret = open_usb(sdi);
                break;
        case DMM_TRANSPORT_SERIAL:
-               /* TODO: O_NONBLOCK? */
                sr_dbg("genericdmm: Opening serial port '%s'.", devc->serial->port);
                devc->serial->fd = serial_open(devc->serial->port, O_RDWR | O_NONBLOCK);
                if (devc->serial->fd == -1) {