mirror of
https://github.com/netdata/libbpf.git
synced 2026-11-06 18:00:15 +08:00
libbpf: Fix unneeded extra initialization in bpf_map_batch_common
bpf_attr doesn't required to be declared with '= {}' as memset is used
in the code.
Fixes: 2ab3d86ea1859 ("libbpf: Add libbpf support to batch ops")
Reported-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Brian Vazquez <brianvv@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20200116045918.75597-1-brianvv@google.com
This commit is contained in:
1 parent
bd35a43bb3
commit
f4f271b068
1 file changed
+1
-1
Reference in new issue
Block a user