]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
w1: remove redundant initialization to variable result
authorColin Ian King <colin.king@canonical.com>
Wed, 21 Jul 2021 10:34:51 +0000 (11:34 +0100)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Mon, 8 May 2023 06:14:50 +0000 (08:14 +0200)
commit9033ff4c0fc65f3f168ee029b7e302a999c152ca
tree8208e707bd3f70346457c3b33980d54d5d32d2e1
parenta8c4dda94115c4079d3aaa35ba238f2376b6aa53
w1: remove redundant initialization to variable result

The variable result 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>
Link: https://lore.kernel.org/r/20210721103451.43026-1-colin.king@canonical.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
drivers/w1/w1.c