X-Git-Url: http://sigrok.org/gitweb/?p=libsigrok.git;a=blobdiff_plain;f=src%2Fhardware%2Funi-t-ut32x%2Fapi.c;h=aa38cf5fb7bd04bb11be8c00b39bdc1d00ce4456;hp=8c04e64a842c6fe96f656d21f5fb46cab6316d9b;hb=c368e6f3d248a73d69cd0c2c4a7c88a92def55e3;hpb=f57d8ffe66612a1fdc20ed09c222f8ea59bd84d4 diff --git a/src/hardware/uni-t-ut32x/api.c b/src/hardware/uni-t-ut32x/api.c index 8c04e64a..aa38cf5f 100644 --- a/src/hardware/uni-t-ut32x/api.c +++ b/src/hardware/uni-t-ut32x/api.c @@ -87,11 +87,8 @@ static GSList *scan(GSList *options) sdi->inst_type = SR_INST_USB; sdi->conn = l->data; for (i = 0; i < 3; i++) { - if (!(ch = sr_channel_new(i, SR_CHANNEL_ANALOG, TRUE, - channels[i]))) { - sr_dbg("Channel malloc failed."); - return NULL; - } + ch = sr_channel_new(i, SR_CHANNEL_ANALOG, TRUE, + channels[i]); sdi->channels = g_slist_append(sdi->channels, ch); } devc = g_malloc0(sizeof(struct dev_context));