X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=blobdiff_plain;f=src%2Fhardware%2Fpipistrello-ols%2Fapi.c;h=9e274f3b5aecf8207951e8edce6afcb2458ed27e;hp=21b7185fb6bfa0eb1ace1d380b84da58829cbf93;hb=093e1cba6b7bf14cfb77fa36f59b0c16e6fca7cc;hpb=89ab9fc39c015d541b2fdd4d9d2fb5e00f63be8a diff --git a/src/hardware/pipistrello-ols/api.c b/src/hardware/pipistrello-ols/api.c index 21b7185f..9e274f3b 100644 --- a/src/hardware/pipistrello-ols/api.c +++ b/src/hardware/pipistrello-ols/api.c @@ -421,22 +421,13 @@ static int dev_open(struct sr_dev_inst *sdi) static int dev_close(struct sr_dev_inst *sdi) { - int ret; struct dev_context *devc; - ret = SR_OK; devc = sdi->priv; - if (sdi->status == SR_ST_ACTIVE) { - sr_dbg("Status ACTIVE, closing device."); - ret = p_ols_close(devc); - } else { - sr_spew("Status not ACTIVE, nothing to do."); - } - sdi->status = SR_ST_INACTIVE; - return ret; + return p_ols_close(devc); } static int set_trigger(const struct sr_dev_inst *sdi, int stage)