X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fkecheng-kc-330b%2Fapi.c;h=02f4b0e01dab72f87981b0fe51511d771df87f61;hb=94e9021b3ee2d18ef0480c6fa95f0d950cf12eb9;hp=3b6544ac028bb87cc4f13ab1d61c24d2fc88dd34;hpb=b979d0c9cbf3a697c0ac4b06031ffb18b5f60006;p=libsigrok.git diff --git a/hardware/kecheng-kc-330b/api.c b/hardware/kecheng-kc-330b/api.c index 3b6544ac..02f4b0e0 100644 --- a/hardware/kecheng-kc-330b/api.c +++ b/hardware/kecheng-kc-330b/api.c @@ -168,11 +168,7 @@ static GSList *scan(GSList *options) static GSList *dev_list(void) { - struct drv_context *drvc; - - drvc = di->priv; - - return drvc->instances; + return ((struct drv_context *)(di->priv))->instances; } static int dev_clear(void)