- num_enabled_probes = 0;
- for (i = 0; probelist[i]; i++)
- num_enabled_probes++;
-
- /* Are there more probes than the target unit size supports? */
- if (num_enabled_probes > out_unitsize * 8) {
- sr_err("filter: %s: too many probes (%d) for the target unit "
- "size (%d)", num_enabled_probes, out_unitsize, __func__);
+ /* Are there more channels than the target unit size supports? */
+ if (channel_array->len > out_unitsize * 8) {
+ sr_err("%s: too many channels (%d) for the target unit "
+ "size (%d)", __func__, channel_array->len, out_unitsize);