X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Flascar-el-usb%2Fprotocol.c;h=c18357b35278068f72f078ef9a0b81f8954308f7;hb=f57d8ffe66612a1fdc20ed09c222f8ea59bd84d4;hp=49ed649b2707f463260db29b23077902e250043e;hpb=aac29cc192ccf82b64e77b5e6b11b411da32deed;p=libsigrok.git diff --git a/src/hardware/lascar-el-usb/protocol.c b/src/hardware/lascar-el-usb/protocol.c index 49ed649b..c18357b3 100644 --- a/src/hardware/lascar-el-usb/protocol.c +++ b/src/hardware/lascar-el-usb/protocol.c @@ -348,8 +348,7 @@ static struct sr_dev_inst *lascar_identify(unsigned char *config) sdi->channels = g_slist_append(NULL, ch); } - if (!(devc = g_try_malloc0(sizeof(struct dev_context)))) - return NULL; + devc = g_malloc0(sizeof(struct dev_context)); sdi->priv = devc; devc->profile = profile; }