]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/appa-55ii/api.c
config_set(): Don't check for sdi->priv != NULL.
[libsigrok.git] / src / hardware / appa-55ii / api.c
index 0574a487d7373bd9f11534e11cd3150147aa568b..09b24cb2d78f7ed9a71516c59a3fb3eea6b29900 100644 (file)
@@ -149,10 +149,7 @@ static int config_set(uint32_t key, GVariant *data, const struct sr_dev_inst *sd
        if (sdi->status != SR_ST_ACTIVE)
                return SR_ERR_DEV_CLOSED;
 
-       if (!(devc = sdi->priv)) {
-               sr_err("sdi->priv was NULL.");
-               return SR_ERR_BUG;
-       }
+       devc = sdi->priv;
 
        switch (key) {
        case SR_CONF_LIMIT_SAMPLES: