From: Uwe Hermann Date: Wed, 21 Aug 2013 09:37:40 +0000 (+0200) Subject: saleae-logic16: Shorten dev_list() implementation. X-Git-Tag: libsigrok-0.2.2~82 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=87b537ced00b56ec7c8b3cfb9ea375a5501017d2;p=libsigrok.git saleae-logic16: Shorten dev_list() implementation. --- diff --git a/hardware/saleae-logic16/api.c b/hardware/saleae-logic16/api.c index baaf0e48..248c24ae 100644 --- a/hardware/saleae-logic16/api.c +++ b/hardware/saleae-logic16/api.c @@ -238,11 +238,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)