w1: ds2438: remove redundant initialization of variable crc
authorColin Ian King <colin.i.king@gmail.com>
Sun, 22 May 2022 19:46:22 +0000 (20:46 +0100)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Mon, 8 May 2023 06:14:51 +0000 (08:14 +0200)
commitee896c5bf21cbac3bed8f958507a449168e965d3
tree968ffecfbb566ea351389da97d84f1e016224a88
parent7f25058c96a0631f4a1ccb4c70831c52e71decf2
w1: ds2438: remove redundant initialization of variable crc

Variable crc is being initialized with a value that is never read,
it is being re-assigned later on. The initialization is redundant
and can be removed.

Cleans up clang scan build warning:
warning: Value stored to 'crc' is never read [deadcode.DeadStores]

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20220522194622.13277-1-colin.i.king@gmail.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
drivers/w1/slaves/w1_ds2438.c