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: Dan Carpenter <error27@gmail.com> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
This commit is contained in:
committed by
Liam Girdwood
parent
9f6532519f
commit
036de8efae
@@ -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 */
|
||||||
|
Reference in New Issue
Block a user