diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-07-21 12:56:30 +0100 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2021-07-22 16:34:35 -0700 |
commit | 724f17b7d45d62c71e92471666647a823cb9baa9 (patch) | |
tree | 466343ca9f5f44df094cc274420f25bb7a179711 /kernel/bpf | |
parent | 16c5900ba776c5acd6568abd60c40f948a96e496 (diff) | |
download | linux-stable-724f17b7d45d62c71e92471666647a823cb9baa9.tar.gz linux-stable-724f17b7d45d62c71e92471666647a823cb9baa9.tar.bz2 linux-stable-724f17b7d45d62c71e92471666647a823cb9baa9.zip |
bpf: Remove redundant intiialization of variable stype
The variable stype is being initialized with a value that is never
read, it is being updated later on. 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: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210721115630.109279-1-colin.king@canonical.com
Diffstat (limited to 'kernel/bpf')
-rw-r--r-- | kernel/bpf/local_storage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/bpf/local_storage.c b/kernel/bpf/local_storage.c index 362e81481594..7ed2a14dc0de 100644 --- a/kernel/bpf/local_storage.c +++ b/kernel/bpf/local_storage.c @@ -406,7 +406,7 @@ static int cgroup_storage_check_btf(const struct bpf_map *map, static void cgroup_storage_seq_show_elem(struct bpf_map *map, void *key, struct seq_file *m) { - enum bpf_cgroup_storage_type stype = cgroup_storage_type(map); + enum bpf_cgroup_storage_type stype; struct bpf_cgroup_storage *storage; int cpu; |