hantek-dso: Simplify cleanup().

This commit is contained in:
Uwe Hermann 2013-05-31 15:18:47 +02:00
parent 658636f1c9
commit dec6c583a2
1 changed files with 1 additions and 8 deletions

View File

@ -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)