X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fipdbg-la%2Fapi.c;h=599960938c7b41fa998893379ceca14b137d8dc4;hb=4838c6ca5acbfa9cf6263d6b71846d83e5663833;hp=6a8f261b6769f2d881a054af1374b1ec1649feb9;hpb=13ac501acd929854fc59fdf8addec66b3eabeb36;p=libsigrok.git diff --git a/src/hardware/ipdbg-la/api.c b/src/hardware/ipdbg-la/api.c index 6a8f261b..59996093 100644 --- a/src/hardware/ipdbg-la/api.c +++ b/src/hardware/ipdbg-la/api.c @@ -97,11 +97,6 @@ static GSList *scan(struct sr_dev_driver *di, GSList *options) return NULL; struct sr_dev_inst *sdi = g_malloc0(sizeof(struct sr_dev_inst)); - if (!sdi) { - sr_err("no possible to allocate sr_dev_inst"); - return NULL; - } - sdi->status = SR_ST_INACTIVE; sdi->vendor = g_strdup("ipdbg.org"); sdi->model = g_strdup("IPDBG LA");