X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Falsa%2Fapi.c;h=5751675058a3ec5338e636e47bccc61e28d3b8f2;hb=0e94d524c19fe89c564243421d37c17818f87631;hp=d9dd83ef1fc0ef329cf7f8113f02851051e099e5;hpb=7c8a9e1e0fada5d726bce638cf4d36147ed4ebbf;p=libsigrok.git diff --git a/hardware/alsa/api.c b/hardware/alsa/api.c index d9dd83ef..57516750 100644 --- a/hardware/alsa/api.c +++ b/hardware/alsa/api.c @@ -62,11 +62,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)