UPSTREAM: regulator: Remove unneded check for regulator supply
authorJavier Martinez Canillas <javier@osg.samsung.com>
Mon, 21 Mar 2016 02:29:45 +0000 (23:29 -0300)
committerHuang, Tao <huangtao@rock-chips.com>
Mon, 6 Mar 2017 10:28:40 +0000 (18:28 +0800)
commit98543f90ac4fde45e5d848ada75cc0e450df9757
tree4f0c449c31bc8baa1ef4c4fa23dda413f18424c4
parentdadb18764cd71242cc0497f5ba6e7d326242889d
UPSTREAM: regulator: Remove unneded check for regulator supply

The regulator_resolve_supply() function checks if a supply has been
associated with a regulator to avoid enabling it if that is not the
case.

But the supply was already looked up with regulator_resolve_supply()
and set with set_supply() before the check and both return on error.

So the fact that this statement has been reached means that neither
of them failed and a supply must be associated with the regulator.

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
(cherry picked from commit 95a293c7ba17253b8cffcacbdd716ebfbfe42587)

Change-Id: Ib4738ae3f733256a2ba794543430ffde2c434352
Signed-off-by: David Wu <david.wu@rock-chips.com>
drivers/regulator/core.c