chronovu-la8: don't try to clean up unless we've initialized
This commit is contained in:
parent
b32503cccd
commit
cf1ebd5446
|
@ -270,6 +270,9 @@ static int hw_dev_close(struct sr_dev_inst *sdi)
|
||||||
static int hw_cleanup(void)
|
static int hw_cleanup(void)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
if (!cdi->priv)
|
||||||
|
return SR_OK;
|
||||||
|
|
||||||
clear_instances();
|
clear_instances();
|
||||||
|
|
||||||
return SR_OK;
|
return SR_OK;
|
||||||
|
|
Loading…
Reference in New Issue