Commit 036de8ef authored by Dan Carpenter's avatar Dan Carpenter Committed by Liam Girdwood

unreachable code in drms_uA_update()

I removed the extra semi-colon and indented the return statement.

The unreachable code was found by smatch (http://repo.or.cz/w/smatch.git).
The patch was compile tested.

regards,
dan carpenter
Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Acked-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
parent 9f653251
...@@ -540,7 +540,7 @@ static void drms_uA_update(struct regulator_dev *rdev) ...@@ -540,7 +540,7 @@ static void drms_uA_update(struct regulator_dev *rdev)
err = regulator_check_drms(rdev); err = regulator_check_drms(rdev);
if (err < 0 || !rdev->desc->ops->get_optimum_mode || if (err < 0 || !rdev->desc->ops->get_optimum_mode ||
!rdev->desc->ops->get_voltage || !rdev->desc->ops->set_mode); !rdev->desc->ops->get_voltage || !rdev->desc->ops->set_mode)
return; return;
/* get output voltage */ /* get output voltage */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment