]> sigrok.org Git - libsigrok.git/commitdiff
saleae-logic16: Shorten dev_list() implementation.
authorUwe Hermann <redacted>
Wed, 21 Aug 2013 09:37:40 +0000 (11:37 +0200)
committerUwe Hermann <redacted>
Wed, 21 Aug 2013 09:37:40 +0000 (11:37 +0200)
hardware/saleae-logic16/api.c

index baaf0e487b33313ae0d2ca2bbc7e79d50c770a1f..248c24aeb79e2584a386840e7f82d6e145f7cf5a 100644 (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)