]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/baylibre-acme/api.c
Various NULL-check consistency fixes.
[libsigrok.git] / src / hardware / baylibre-acme / api.c
index 4bcf772dd3c110b9ad9d7dacf60616d128eb0a07..def373d1e2a34d4c682d14e6c4d286eba615aa26 100644 (file)
@@ -115,7 +115,7 @@ static GSList *scan(struct sr_dev_driver *di, GSList *options)
         * Let's assume there's no ACME device present if no probe
         * has been registered.
         */
-       if (sdi->channel_groups == NULL)
+       if (!sdi->channel_groups)
                goto err_out;
 
        devices = g_slist_append(devices, sdi);