From: Bert Vermeulen Date: Fri, 16 Nov 2012 14:26:17 +0000 (+0100) Subject: ols: if no serial port specified, this driver is not used. X-Git-Tag: dsupstream~539 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=90165efe55de692e6329d0820d867d0887db5663;p=libsigrok.git ols: if no serial port specified, this driver is not used. --- diff --git a/hardware/openbench-logic-sniffer/ols.c b/hardware/openbench-logic-sniffer/ols.c index 643e2683..995fdccf 100644 --- a/hardware/openbench-logic-sniffer/ols.c +++ b/hardware/openbench-logic-sniffer/ols.c @@ -409,10 +409,8 @@ static GSList *hw_scan(GSList *options) break; } } - if (!conn) { - sr_err("ols: No serial port specified."); + if (!conn) return NULL; - } if (serialcomm == NULL) serialcomm = SERIALCOMM;