diff options
author | Yadwinder Singh Brar <yadi.brar@samsung.com> | 2013-06-29 12:51:19 (GMT) |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-07-15 10:27:48 (GMT) |
commit | 5b175952011adae30b531ab89cc24acb173b2ce4 (patch) | |
tree | 3d32b5482cb43df0958ca9e93381249c889fe9ee /include/linux | |
parent | 1653ccf4c52df6a4abe8ec2f33f2cb2896d129ea (diff) | |
download | linux-fsl-qoriq-5b175952011adae30b531ab89cc24acb173b2ce4.tar.xz |
regulator: core: Remove redundant checks
In function _regulator_do_set_voltage(), old_selector gets intialised only
if (_regulator_is_enabled(rdev) && rdev->desc->ops->set_voltage_time_sel &&
rdev->desc->ops->get_voltage_sel)) is true.
Before calling set_voltage_time_sel() we checks if (old_selector >= 0) and it
will true if it got intialised properly. so we don't need to check again
_regulator_is_enabled(rdev) && rdev->desc->ops->set_voltage_time_sel before
calling set_voltage_time_sel().
Signed-off-by: Yadwinder Singh Brar <yadi.brar@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions