hantek-dso: Simplify cleanup().
This commit is contained in:
parent
658636f1c9
commit
dec6c583a2
|
@ -419,14 +419,7 @@ static int dev_close(struct sr_dev_inst *sdi)
|
|||
|
||||
static int cleanup(void)
|
||||
{
|
||||
struct drv_context *drvc;
|
||||
|
||||
if (!(drvc = di->priv))
|
||||
return SR_OK;
|
||||
|
||||
clear_instances();
|
||||
|
||||
return SR_OK;
|
||||
return clear_instances();
|
||||
}
|
||||
|
||||
static int config_get(int id, GVariant **data, const struct sr_dev_inst *sdi)
|
||||
|
|
Loading…
Reference in New Issue