- if (mic_devs[idx].has_humidity) {
- if (!(ch = sr_channel_new(1, SR_CHANNEL_ANALOG, TRUE, "Humidity")))
- goto scan_cleanup;
- sdi->channels = g_slist_append(sdi->channels, ch);
- }
+ if (mic_devs[idx].has_humidity)
+ sr_channel_new(sdi, 1, SR_CHANNEL_ANALOG, TRUE, "Humidity");