]> sigrok.org Git - libsigrok.git/commitdiff
fluke-dmm: don't log anything if no conn params given
authorBert Vermeulen <redacted>
Sun, 16 Sep 2012 19:27:06 +0000 (21:27 +0200)
committerBert Vermeulen <redacted>
Tue, 25 Sep 2012 17:53:05 +0000 (19:53 +0200)
hardware/fluke-dmm/api.c

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