]> sigrok.org Git - libsigrok.git/blobdiff - hardware/chronovu-la8/api.c
Shorten/simplify hw_dev_list() implementations.
[libsigrok.git] / hardware / chronovu-la8 / api.c
index b1f889198d13ed99cb56eed95db3c2433ea30685..6bbdcdbbc893197bfeb99433aea8e4ab6ddd9425 100644 (file)
@@ -180,11 +180,7 @@ err_free_nothing:
 
 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)