rdtech-dps: Add missing devc initialisation.

This commit is contained in:
Frank Stettner 2021-05-09 18:55:08 +02:00 committed by Gerhard Sittig
parent c899e691f3
commit 4efd5462c7
1 changed files with 4 additions and 0 deletions

View File

@ -586,6 +586,10 @@ SR_PRIV int rdtech_dps_seed_receive(const struct sr_dev_inst *sdi)
struct rdtech_dps_state state;
int ret;
if (!sdi || !sdi->priv)
return SR_ERR_ARG;
devc = sdi->priv;
ret = rdtech_dps_get_state(sdi, &state, ST_CTX_PRE_ACQ);
if (ret != SR_OK)
return ret;