Skip to content
Commit b1fc28b3 authored by Linkui Xiao's avatar Linkui Xiao Committed by Andrii Nakryiko
Browse files

samples: bpf: Replace sizeof(arr)/sizeof(arr[0]) with ARRAY_SIZE



The ARRAY_SIZE macro is more compact and more formal in linux source.

Signed-off-by: default avatarLinkui Xiao <xiaolinkui@kylinos.cn>
Signed-off-by: default avatarAndrii Nakryiko <andrii@kernel.org>
Acked-by: default avatarJiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/bpf/20220712072302.13761-1-xiaolinkui@kylinos.cn
parent 8ab4cdcf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment