[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAPhsuW55ZtCWcFyKThf-ShvgsZWHgz=zSjhSHROTuruYJu-zvA@mail.gmail.com>
Date: Sun, 29 May 2022 22:50:09 -0700
From: Song Liu <song@...nel.org>
To: Daniel Xu <dxu@...uu.xyz>
Cc: bpf <bpf@...r.kernel.org>, Alexei Starovoitov <ast@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>,
Andrii Nakryiko <andrii@...nel.org>,
open list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH bpf-next] bpf, test_run: Remove unnecessary prog type checks
On Sun, May 29, 2022 at 1:16 PM Daniel Xu <dxu@...uu.xyz> wrote:
>
> These checks were effectively noops b/c there's only one way these
> functions get called: through prog_ops dispatching. And since there's no
> other callers, we can be sure that `prog` is always the correct type.
>
> Signed-off-by: Daniel Xu <dxu@...uu.xyz>
Acked-by: Song Liu <songliubraving@...com>
Powered by blists - more mailing lists