X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fcolead-slm%2Fapi.c;h=cfeb45bd9a2fe777b1c5ed14356b0350396b48c4;hb=0e94d524c19fe89c564243421d37c17818f87631;hp=5532b1a162fca5e2a93079afd713c6ce35165977;hpb=7c8a9e1e0fada5d726bce638cf4d36147ed4ebbf;p=libsigrok.git diff --git a/hardware/colead-slm/api.c b/hardware/colead-slm/api.c index 5532b1a1..cfeb45bd 100644 --- a/hardware/colead-slm/api.c +++ b/hardware/colead-slm/api.c @@ -134,11 +134,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)