diff options
author | Dan Carpenter <error27@gmail.com> | 2009-04-08 13:52:39 +0300 |
---|---|---|
committer | Liam Girdwood <lrg@slimlogic.co.uk> | 2009-04-28 18:58:06 +0100 |
commit | 036de8efae4b81f8e1504fab654070cecce6dfa9 (patch) | |
tree | 921ed659659bd04d278868b64f3457956b633ddc /drivers/regulator | |
parent | 9f6532519feab921856f41b30a2397ee25f4de49 (diff) | |
download | blackbird-obmc-linux-036de8efae4b81f8e1504fab654070cecce6dfa9.tar.gz blackbird-obmc-linux-036de8efae4b81f8e1504fab654070cecce6dfa9.zip |
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>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index 01f7702a805d..47fc6e6fe9bc 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c @@ -540,8 +540,8 @@ static void drms_uA_update(struct regulator_dev *rdev) err = regulator_check_drms(rdev); if (err < 0 || !rdev->desc->ops->get_optimum_mode || - !rdev->desc->ops->get_voltage || !rdev->desc->ops->set_mode); - return; + !rdev->desc->ops->get_voltage || !rdev->desc->ops->set_mode) + return; /* get output voltage */ output_uV = rdev->desc->ops->get_voltage(rdev); |