summaryrefslogtreecommitdiff
path: root/tools/lib/bpf/libbpf.h
diff options
context:
space:
mode:
authorAndrii Nakryiko <andrii@kernel.org>2022-05-10 11:51:59 -0700
committerDaniel Borkmann <daniel@iogearbox.net>2022-05-11 14:06:29 +0200
commit5eefe17c7ae41bac4d2d281669e8357a10f4d5a4 (patch)
tree776c3ef83ae05684faf8d6c1d50355f0a96bf4a2 /tools/lib/bpf/libbpf.h
parent93dafa92e1cf922bd06fa738bc4f85fdfb63a39f (diff)
libbpf: Clean up ringbuf size adjustment implementation
Drop unused iteration variable, move overflow prevention check into the for loop. Fixes: 0087a681fa8c ("libbpf: Automatically fix up BPF_MAP_TYPE_RINGBUF size, if necessary") Reported-by: Nathan Chancellor <nathan@kernel.org> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/bpf/20220510185159.754299-1-andrii@kernel.org
Diffstat (limited to 'tools/lib/bpf/libbpf.h')
0 files changed, 0 insertions, 0 deletions