]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: clean up bpf_prog_get_info_by_fd()
authorSong Liu <songliubraving@fb.com>
Mon, 10 Dec 2018 19:17:50 +0000 (11:17 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 10 Dec 2018 22:48:42 +0000 (14:48 -0800)
commit14509ecd9a3a57a20ebe9248a124f4fd1d35f745
treefa9889b9460e19a2369d70f18e04e3ebc942a337
parentd0fc84ce7500b89f85b0f2bcc8ce14843c4cb1ee
bpf: clean up bpf_prog_get_info_by_fd()

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 <songliubraving@fb.com>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/syscall.c