]> asedeno.scripts.mit.edu Git - linux.git/commit
regulator: core: simplify regulator_bulk_force_disable()
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 3 Feb 2017 23:16:17 +0000 (15:16 -0800)
committerMark Brown <broonie@kernel.org>
Sat, 4 Feb 2017 10:37:24 +0000 (11:37 +0100)
commitb8c77ff6902baa6ca93ca643bfff2d565801ea30
tree188250c8309f186f697ebbebc14829da507cea9c
parenta8bd42a97741aefa5942605fa87418fc8a6c4169
regulator: core: simplify regulator_bulk_force_disable()

There is no need to have two loops there, we can store error for subsequent
reporting.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c