]> sigrok.org Git - libsigrok.git/blobdiff - hardware/fx2lafw/fx2lafw.c
Shorten/simplify hw_dev_list() implementations.
[libsigrok.git] / hardware / fx2lafw / fx2lafw.c
index fb673d675ac784725cf7e20f78a61bdc49230a6d..75b4557c9ebf70ada03b7497e7060b4c5bb45668 100644 (file)
@@ -478,11 +478,7 @@ static GSList *hw_scan(GSList *options)
 
 static GSList *hw_dev_list(void)
 {
-       struct drv_context *drvc;
-
-       drvc = di->priv;
-
-       return drvc->instances;
+       return ((struct drv_context *)(di->priv))->instances;
 }
 
 static int hw_dev_open(struct sr_dev_inst *sdi)