OSDN Git Service

bpf: Remove redundant intiialization of variable stype
authorColin Ian King <colin.king@canonical.com>
Wed, 21 Jul 2021 11:56:30 +0000 (12:56 +0100)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 22 Jul 2021 23:34:35 +0000 (16:34 -0700)
commit724f17b7d45d62c71e92471666647a823cb9baa9
tree466343ca9f5f44df094cc274420f25bb7a179711
parent16c5900ba776c5acd6568abd60c40f948a96e496
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
kernel/bpf/local_storage.c