In read_vals_batch function, the errno set by bpf_map_lookup_and_delete_batch() may change if the next warn() fails. So the errno of read_vals:240 may be incorrect.
bpf_map_lookup_and_delete_batch() already returns errno with a minus added on failure, so used the return value instead of errno.
In read_vals_batch function, the errno set by bpf_map_lookup_and_delete_batch() may change if the next warn() fails. So the errno of read_vals:240 may be incorrect.
bpf_map_lookup_and_delete_batch() already returns errno with a minus added on failure, so used the return value instead of errno.