Skip to content

Commit a3c7c02

Browse files
Colin Ian Kingbroonie
authored andcommitted
regulator: max77620: remove redundant assignment to variable ret
The variable ret 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> Link: https://lore.kernel.org/r/20190703082009.18779-1-colin.king@canonical.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent d6d02bc commit a3c7c02

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/regulator/max77620-regulator.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ static int max77620_regulator_is_enabled(struct regulator_dev *rdev)
467467
{
468468
struct max77620_regulator *pmic = rdev_get_drvdata(rdev);
469469
int id = rdev_get_id(rdev);
470-
int ret = 1;
470+
int ret;
471471

472472
if (pmic->active_fps_src[id] != MAX77620_FPS_SRC_NONE)
473473
return 1;

0 commit comments

Comments
 (0)