X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Ftondaj-sl-814%2Fapi.c;h=5c72c6a29221a8424f6a5f5814c62bf440cb3360;hb=cbc8cbd8bbd664043c349133818e0ab41422c751;hp=17fbc2b1b4d91bfac21e93b866f3be132ecf8716;hpb=1ebe4b4e6926eb1288ce77b179a92bc670eb9eca;p=libsigrok.git diff --git a/hardware/tondaj-sl-814/api.c b/hardware/tondaj-sl-814/api.c index 17fbc2b1..5c72c6a2 100644 --- a/hardware/tondaj-sl-814/api.c +++ b/hardware/tondaj-sl-814/api.c @@ -120,10 +120,8 @@ static GSList *hw_scan(GSList *options) break; } } - if (!conn) { - sr_dbg("Couldn't determine connection options."); + if (!conn) return NULL; - } if (!serialcomm) serialcomm = SERIALCOMM;