struct dev_context *devc;
GSList *l;
- drvc = di->priv;
+ if (!(drvc = di->priv))
+ return SR_OK;
+
for (l = drvc->instances; l; l = l->next) {
if (!(sdi = l->data))
continue;
return SR_OK;
}
-static int hw_dev_acquisition_stop(const struct sr_dev_inst *sdi,
- void *cb_data)
+static int hw_dev_acquisition_stop(struct sr_dev_inst *sdi, void *cb_data)
{
struct sr_datafeed_packet packet;
struct dev_context *devc;