X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fzeroplus-logic-cube%2Fzeroplus.c;h=3acc977db2e517c01dd96bb8337924c08180aeb7;hb=0e94d524c19fe89c564243421d37c17818f87631;hp=c4add3fc5afc0c9c3beec31f3f3ca2d4dfce89fd;hpb=7c8a9e1e0fada5d726bce638cf4d36147ed4ebbf;p=libsigrok.git diff --git a/hardware/zeroplus-logic-cube/zeroplus.c b/hardware/zeroplus-logic-cube/zeroplus.c index c4add3fc..3acc977d 100644 --- a/hardware/zeroplus-logic-cube/zeroplus.c +++ b/hardware/zeroplus-logic-cube/zeroplus.c @@ -382,11 +382,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)