]> sigrok.org Git - libsigrok.git/blobdiff - hardware/nexus-osciprime/api.c
sr_driver_scan(): Improve checks.
[libsigrok.git] / hardware / nexus-osciprime / api.c
index c35e2cfb9b84c7c6b99a44daa24572d9207ff87e..1b8d8083858a45fce348636d55d07410a7993894 100644 (file)
@@ -167,10 +167,7 @@ static GSList *hw_scan(GSList *options)
 
        (void)options;
 
-       if (!(drvc = di->priv)) {
-               sr_err("Driver was not initialized.");
-               return NULL;
-       }
+       drvc = di->priv;
 
        /* USB scan is always authoritative. */
        clear_instances();