Skip to content

Commit 235fc0e

Browse files
Colin Ian Kingborkmann
authored andcommitted
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 <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Song Liu <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent 913d550 commit 235fc0e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

kernel/bpf/btf.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,6 @@ static const struct btf_type *btf_type_skip_qualifiers(const struct btf *btf,
789789

790790
while (btf_type_is_modifier(t) &&
791791
BTF_INFO_KIND(t->info) != BTF_KIND_TYPEDEF) {
792-
id = t->type;
793792
t = btf_type_by_id(btf, t->type);
794793
}
795794

0 commit comments

Comments
 (0)