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)
committerMark Brown <broonie@kernel.org>
Mon, 21 Mar 2016 13:35:30 +0000 (13:35 +0000)
commit95a293c7ba17253b8cffcacbdd716ebfbfe42587
tree4dbb667395c24e3eb1adde35295dc497b270a351
parent768e66686cfe83f786f6ae26f1799cca69e80523
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>
drivers/regulator/core.c