chronovu-la8: don't try to clean up unless we've initialized

This commit is contained in:
Bert Vermeulen 2012-08-02 21:54:21 +02:00
parent b32503cccd
commit cf1ebd5446
1 changed files with 3 additions and 0 deletions

View File

@ -270,6 +270,9 @@ static int hw_dev_close(struct sr_dev_inst *sdi)
static int hw_cleanup(void)
{
if (!cdi->priv)
return SR_OK;
clear_instances();
return SR_OK;