Commit 5eefe17
libbpf: Clean up ringbuf size adjustment implementation
Drop unused iteration variable, move overflow prevention check into the
for loop.
Fixes: 0087a68 ("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.org1 parent 93dafa9 commit 5eefe17
1 file changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4951 | 4951 | | |
4952 | 4952 | | |
4953 | 4953 | | |
4954 | | - | |
| 4954 | + | |
4955 | 4955 | | |
4956 | 4956 | | |
4957 | 4957 | | |
| |||
4967 | 4967 | | |
4968 | 4968 | | |
4969 | 4969 | | |
4970 | | - | |
4971 | | - | |
4972 | | - | |
| 4970 | + | |
4973 | 4971 | | |
4974 | 4972 | | |
4975 | 4973 | | |
| |||
0 commit comments