Commit 73b6eae5 authored by Colin Ian King's avatar Colin Ian King Committed by Andrii Nakryiko

bpf: Remove redundant assignment to pointer t

The pointer t is being initialized with a value that is never read. The
pointer is re-assigned a value a littler later on, hence the initialization
is redundant and can be removed.
Signed-off-by: default avatarColin Ian King <colin.i.king@gmail.com>
Signed-off-by: default avatarAndrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20211207224718.59593-1-colin.i.king@gmail.com
parent b540358e
...@@ -837,7 +837,7 @@ static const char *btf_show_name(struct btf_show *show) ...@@ -837,7 +837,7 @@ static const char *btf_show_name(struct btf_show *show)
const char *ptr_suffix = &ptr_suffixes[strlen(ptr_suffixes)]; const char *ptr_suffix = &ptr_suffixes[strlen(ptr_suffixes)];
const char *name = NULL, *prefix = "", *parens = ""; const char *name = NULL, *prefix = "", *parens = "";
const struct btf_member *m = show->state.member; const struct btf_member *m = show->state.member;
const struct btf_type *t = show->state.type; const struct btf_type *t;
const struct btf_array *array; const struct btf_array *array;
u32 id = show->state.type_id; u32 id = show->state.type_id;
const char *member = NULL; const char *member = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment