]> git.ipfire.org Git - thirdparty/iproute2.git/commit
lib/bpf_legacy: remove always-true check
authorMaxim Petrov <mmrmaximuzz@gmail.com>
Tue, 16 Nov 2021 19:32:26 +0000 (22:32 +0300)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 18 Nov 2021 23:01:04 +0000 (15:01 -0800)
commit3184de37976c252a217f53953a439012363d8a6f
tree047e69db04924aa998e8c3a16e6ddd62fd410722
parent79026c12626e75d46d88a67db0b619fa2819bf72
lib/bpf_legacy: remove always-true check

The 'name' field of the 'struct bpf_prog_info' is a plain C array. Thus, the
logical condition in bpf_dump_prog_info() is useless as the array address is
always true, so just remove it.

Signed-off-by: Maxim Petrov <mmrmaximuzz@gmail.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
lib/bpf_legacy.c