libbpf: Remove unneeded check for flags during tc detach
authorKumar Kartikeya Dwivedi <memxor@gmail.com>
Sat, 12 Jun 2021 02:35:00 +0000 (08:05 +0530)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 15 Jun 2021 11:58:56 +0000 (13:58 +0200)
commit4e164f8716853b879e2b1a21a12d54c57f11372e
tree8f65ce38c4e41fdbcbbb5b4fb25d7ac36518243a
parentca16b429f39b4ce013bfa7e197f25681e65a2a42
libbpf: Remove unneeded check for flags during tc detach

Coverity complained about this being unreachable code. It is right
because we already enforce flags to be unset, so a check validating
the flag value is redundant.

Fixes: 715c5ce454a6 ("libbpf: Add low level TC-BPF management API")
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20210612023502.1283837-2-memxor@gmail.com
tools/lib/bpf/netlink.c