Skip to content

Commit

Permalink
regulator: max77620: remove redundant assignment to variable ret
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Colin Ian King authored and Mark Brown committed Jul 3, 2019
1 parent d6d02bc commit a3c7c02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/regulator/max77620-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ static int max77620_regulator_is_enabled(struct regulator_dev *rdev)
{
struct max77620_regulator *pmic = rdev_get_drvdata(rdev);
int id = rdev_get_id(rdev);
int ret = 1;
int ret;

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

0 comments on commit a3c7c02

Please sign in to comment.