]> sigrok.org Git - libsigrok.git/commitdiff
agilent-dmm: don't log anything if no conn params given
authorBert Vermeulen <redacted>
Sun, 16 Sep 2012 21:43:47 +0000 (23:43 +0200)
committerBert Vermeulen <redacted>
Sun, 16 Sep 2012 22:00:27 +0000 (00:00 +0200)
hardware/agilent-dmm/api.c

index 29e7d15f65446de241ac38bd1c78e6e04564d0ae..da5cad6f9e89e099b54d1cf1d323fc58308d73d0 100644 (file)
@@ -174,14 +174,8 @@ static GSList *hw_scan(GSList *options)
                        break;
                }
        }
-       if (!conn) {
-               sr_dbg("no serial port provided");
+       if (!conn || !serialcomm)
                return NULL;
-       }
-       if (!serialcomm) {
-               sr_dbg("no serial communication parameters provided");
-               return NULL;
-       }
 
        if ((fd = serial_open(conn, O_RDWR|O_NONBLOCK)) == -1) {
                sr_err("agilent-dmm: unable to open %s: %s", conn, strerror(errno));