From: Uwe Hermann Date: Tue, 24 Sep 2013 07:16:44 +0000 (+0200) Subject: uni-t-ut32x: Shorten dev_list(). X-Git-Tag: libsigrok-0.2.2~54 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=45c0841b2576fab58e7e059fd7fb839c740ba758;p=libsigrok.git uni-t-ut32x: Shorten dev_list(). --- diff --git a/hardware/uni-t-ut32x/api.c b/hardware/uni-t-ut32x/api.c index f97adcda..c3ef49a7 100644 --- a/hardware/uni-t-ut32x/api.c +++ b/hardware/uni-t-ut32x/api.c @@ -113,11 +113,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)