From 87b537ced00b56ec7c8b3cfb9ea375a5501017d2 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Wed, 21 Aug 2013 11:37:40 +0200 Subject: [PATCH] saleae-logic16: Shorten dev_list() implementation. --- hardware/saleae-logic16/api.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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)