X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Flecroy-xstream%2Fapi.c;h=480866474b747791957df86f201b4912dc17c205;hb=093e1cba6b7bf14cfb77fa36f59b0c16e6fca7cc;hp=748fbd1e03bf155290783a157262c782acbf31e0;hpb=89ab9fc39c015d541b2fdd4d9d2fb5e00f63be8a;p=libsigrok.git diff --git a/src/hardware/lecroy-xstream/api.c b/src/hardware/lecroy-xstream/api.c index 748fbd1e..48086647 100644 --- a/src/hardware/lecroy-xstream/api.c +++ b/src/hardware/lecroy-xstream/api.c @@ -148,9 +148,6 @@ static int dev_open(struct sr_dev_inst *sdi) static int dev_close(struct sr_dev_inst *sdi) { - if (sdi->status == SR_ST_INACTIVE) - return SR_OK; - sr_scpi_close(sdi->conn); sdi->status = SR_ST_INACTIVE;