Re: [PATCH bpf-next] bpf: clean up bpf_prog_get_info_by_fd()

2018-12-10 Thread Alexei Starovoitov
On Mon, Dec 10, 2018 at 11:17:50AM -0800, Song Liu wrote: > info.nr_jited_ksyms and info.nr_jited_func_lens cannot be 0 in these two > statements, so we don't need to check them. > > Signed-off-by: Song Liu Applied, Thanks

Re: [PATCH bpf-next] bpf: clean up bpf_prog_get_info_by_fd()

2018-12-10 Thread Martin Lau
On Mon, Dec 10, 2018 at 11:17:50AM -0800, Song Liu wrote: > info.nr_jited_ksyms and info.nr_jited_func_lens cannot be 0 in these two > statements, so we don't need to check them. Acked-by: Martin KaFai Lau

[PATCH bpf-next] bpf: clean up bpf_prog_get_info_by_fd()

2018-12-10 Thread Song Liu
info.nr_jited_ksyms and info.nr_jited_func_lens cannot be 0 in these two statements, so we don't need to check them. Signed-off-by: Song Liu --- kernel/bpf/syscall.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/bpf/syscall.c b/kernel/bpf/syscall.c index 19c88cff