OSDN Git Service

mfd: max14577: Remove redundant initialization of variable current_bits
authorColin Ian King <colin.king@canonical.com>
Thu, 23 Jul 2020 16:15:41 +0000 (17:15 +0100)
committerLee Jones <lee.jones@linaro.org>
Thu, 13 Aug 2020 06:50:04 +0000 (07:50 +0100)
commit1f0fa85c07fb53d756219cf7e6e8e77eab6e75eb
tree668ef885f35755336195119ce59f5c368c948595
parent594f1935b373019aacaff00929ae61fec0ec83a5
mfd: max14577: Remove redundant initialization of variable current_bits

The variable current_bits is being initialized with a value that is
never read and it is being updated later with a new value. The
initialization is redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/max14577.c