Re: [RFC bpf-next v1 1/8] bpf: add a get_helper_proto() utility function

Eduard Zingerman
2024-07-02T20:07:23Z

On Mon, 2024-07-01 at 17:41 -0700, Andrii Nakryiko wrote:

[...]

> subjective, but this might be cleaner and will keep first verbose() on
> a single line:
>
> err = get_helper_proto(...);
> if (err == -ERANGE) {
> verbose(...);
> return -EINVAL;
> } else if (err) {
> verbose(...);
> return err;
> }

Will do.