]> sigrok.org Git - libsigrok.git/commitdiff
use driver callbacks directly
authorBert Vermeulen <redacted>
Sun, 7 Apr 2013 20:51:45 +0000 (22:51 +0200)
committerBert Vermeulen <redacted>
Thu, 11 Apr 2013 16:32:08 +0000 (18:32 +0200)
hwdriver.c

index d48131d26b4069d9577998dc0819676915f484ce..0d264815fbbf394ca104cf7980cc753358dd6658 100644 (file)
@@ -479,7 +479,7 @@ SR_API int sr_config_list(const struct sr_dev_driver *driver, int key,
 
        if (!driver || !data)
                ret = SR_ERR;
-       else if (!sdi->driver->config_list)
+       else if (!driver->config_list)
                ret = SR_ERR_ARG;
        else if ((ret = driver->config_list(key, data, sdi)) == SR_OK)
                g_variant_ref_sink(*data);