]> sigrok.org Git - libsigrok.git/blobdiff - hardware/brymen-dmm/api.c
Shorten/simplify hw_dev_list() implementations.
[libsigrok.git] / hardware / brymen-dmm / api.c
index b1b3acb929ea21c25d90c0c7387bbe4063de74e2..83c7bc479b3205bf77c16ad2f567751c3b7c8eea 100644 (file)
@@ -172,11 +172,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)