]> sigrok.org Git - libsigrok.git/commitdiff
uni-t-ut32x: Shorten dev_list().
authorUwe Hermann <redacted>
Tue, 24 Sep 2013 07:16:44 +0000 (09:16 +0200)
committerUwe Hermann <redacted>
Wed, 25 Sep 2013 12:26:35 +0000 (14:26 +0200)
hardware/uni-t-ut32x/api.c

index f97adcda0a178632ad174fc07782349bc0cafca6..c3ef49a72ed0af440431c5dc0727677621f99aca 100644 (file)
@@ -113,11 +113,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)