agilent-dmm: don't log anything if no conn params given
This commit is contained in:
parent
e9022f596d
commit
c2016fa0eb
|
@ -174,14 +174,8 @@ static GSList *hw_scan(GSList *options)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!conn) {
|
if (!conn || !serialcomm)
|
||||||
sr_dbg("no serial port provided");
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
|
||||||
if (!serialcomm) {
|
|
||||||
sr_dbg("no serial communication parameters provided");
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ((fd = serial_open(conn, O_RDWR|O_NONBLOCK)) == -1) {
|
if ((fd = serial_open(conn, O_RDWR|O_NONBLOCK)) == -1) {
|
||||||
sr_err("agilent-dmm: unable to open %s: %s", conn, strerror(errno));
|
sr_err("agilent-dmm: unable to open %s: %s", conn, strerror(errno));
|
||||||
|
|
Loading…
Reference in New Issue