]> sigrok.org Git - libsigrok.git/blobdiff - hardware/tondaj-sl-814/api.c
Shorten/simplify hw_dev_list() implementations.
[libsigrok.git] / hardware / tondaj-sl-814 / api.c
index da88bd070d479939db147dde54938d7c8da2e49c..36ec5c2635d9dba3110e7c03d1dca82969710066 100644 (file)
@@ -144,11 +144,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)