+ 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__);
+ return SR_ERR_ARG;
+ }
+