X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=blobdiff_plain;f=src%2Fhardware%2Fikalogic-scanaplus%2Fapi.c;h=1bc17b73528c226979a9b0d353004fa2302dd0b1;hp=eb33a4508dbc8884ce159044535a15a747f7135e;hb=093e1cba6b7bf14cfb77fa36f59b0c16e6fca7cc;hpb=89ab9fc39c015d541b2fdd4d9d2fb5e00f63be8a diff --git a/src/hardware/ikalogic-scanaplus/api.c b/src/hardware/ikalogic-scanaplus/api.c index eb33a450..1bc17b73 100644 --- a/src/hardware/ikalogic-scanaplus/api.c +++ b/src/hardware/ikalogic-scanaplus/api.c @@ -218,22 +218,13 @@ err_dev_open_close_ftdic: 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 = scanaplus_close(devc); - } else { - sr_spew("Status not ACTIVE, nothing to do."); - } - sdi->status = SR_ST_INACTIVE; - return ret; + return scanaplus_close(devc); } static int config_get(uint32_t key, GVariant **data, const struct sr_dev_inst *sdi,