saleae-logic16: Shorten dev_list() implementation.

This commit is contained in:
Uwe Hermann 2013-08-21 11:37:40 +02:00
parent 96484e22b4
commit 87b537ced0
1 changed files with 1 additions and 5 deletions

View File

@ -238,11 +238,7 @@ static GSList *scan(GSList *options)
static GSList *dev_list(void)
{
struct drv_context *drvc;
drvc = di->priv;
return drvc->instances;
return ((struct drv_context *)(di->priv))->instances;
}
static int dev_clear(void)