colead-slm: fix sloppy driver context handling

This commit is contained in:
Bert Vermeulen 2012-11-02 20:43:49 +01:00
parent f18297a5fd
commit 538ac9a91e
1 changed files with 3 additions and 1 deletions

View File

@ -57,7 +57,9 @@ static int clear_instances(void)
struct dev_context *devc;
GSList *l;
drvc = di->priv;
if (!(drvc = di->priv))
return SR_OK;
for (l = drvc->instances; l; l = l->next) {
if (!(sdi = l->data))
continue;