summaryrefslogtreecommitdiffstats
path: root/kernel/bpf
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2021-03-26 19:43:48 +0000
committerDaniel Borkmann <daniel@iogearbox.net>2021-03-30 22:58:53 +0200
commit235fc0e36d35270e1ff426f26bbea6154b8863a5 (patch)
treed5179fc6a448ed09f2456b54037eb9ff29e4c163 /kernel/bpf
parent913d55037616659c04763e756f948fcbaef0bbee (diff)
downloadlinux-stable-235fc0e36d35270e1ff426f26bbea6154b8863a5.tar.gz
linux-stable-235fc0e36d35270e1ff426f26bbea6154b8863a5.tar.bz2
linux-stable-235fc0e36d35270e1ff426f26bbea6154b8863a5.zip
bpf: Remove redundant assignment of variable id
The variable id is being assigned a value that is never read, the assignment is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Song Liu <songliubraving@fb.com> Link: https://lore.kernel.org/bpf/20210326194348.623782-1-colin.king@canonical.com
Diffstat (limited to 'kernel/bpf')
-rw-r--r--kernel/bpf/btf.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/bpf/btf.c b/kernel/bpf/btf.c
index ec8afc4bc560..0600ed325fa0 100644
--- a/kernel/bpf/btf.c
+++ b/kernel/bpf/btf.c
@@ -789,7 +789,6 @@ static const struct btf_type *btf_type_skip_qualifiers(const struct btf *btf,
while (btf_type_is_modifier(t) &&
BTF_INFO_KIND(t->info) != BTF_KIND_TYPEDEF) {
- id = t->type;
t = btf_type_by_id(btf, t->type);
}