X-Git-Url: http://sigrok.org/gitweb/?p=libsigrok.git;a=blobdiff_plain;f=src%2Fhardware%2Frigol-ds%2Fapi.c;h=1c2a2ba18b0b3489c703475a30a4dd27bd5f79ae;hp=e988741eeaab6d8b17414fcc171577eee2e4fe5c;hb=c368e6f3d248a73d69cd0c2c4a7c88a92def55e3;hpb=f57d8ffe66612a1fdc20ed09c222f8ea59bd84d4 diff --git a/src/hardware/rigol-ds/api.c b/src/hardware/rigol-ds/api.c index e988741e..1c2a2ba1 100644 --- a/src/hardware/rigol-ds/api.c +++ b/src/hardware/rigol-ds/api.c @@ -361,8 +361,6 @@ static struct sr_dev_inst *probe_device(struct sr_scpi_dev_inst *scpi) return NULL; ch = sr_channel_new(i, SR_CHANNEL_LOGIC, TRUE, channel_name); g_free(channel_name); - if (!ch) - return NULL; sdi->channels = g_slist_append(sdi->channels, ch); devc->digital_group->channels = g_slist_append( devc->digital_group->channels, ch);