diff options
author | 2019-05-29 10:36:09 -0700 | |
---|---|---|
committer | 2019-05-30 01:23:35 +0200 | |
commit | 7e8c328c4e96a0fc68d9f1264656683f7f1e12c1 (patch) | |
tree | 2998afeb82d3adf13d880b6e1b9917cafcc9c9f0 /kernel/bpf/devmap.c | |
parent | libbpf: use negative fd to specify missing BTF (diff) | |
download | wireguard-linux-7e8c328c4e96a0fc68d9f1264656683f7f1e12c1.tar.xz wireguard-linux-7e8c328c4e96a0fc68d9f1264656683f7f1e12c1.zip |
libbpf: simplify two pieces of logic
Extra check for type is unnecessary in first case.
Extra zeroing is unnecessary, as snprintf guarantees that it will
zero-terminate string.
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'kernel/bpf/devmap.c')
0 files changed, 0 insertions, 0 deletions