regulator: fix simple_return.cocci warnings
authorJulia Lawall <julia.lawall@lip6.fr>
Tue, 16 Jun 2015 13:45:14 +0000 (06:45 -0700)
committerMark Brown <broonie@kernel.org>
Tue, 16 Jun 2015 14:58:53 +0000 (15:58 +0100)
commit0f94bffad401faa045c2062f1652d21e3e89f439
tree7420b2da5ae1372389c8339f0b221703871486d5
parente92a4047419c805d08ad136fbc72368249d9f091
regulator: fix simple_return.cocci warnings

Simplify a trivial if-return sequence and combine with a
preceding function call.

Generated by: scripts/coccinelle/misc/simple_return.cocci

CC: Mark Brown <broonie@kernel.org>
Signed-off-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/qcom_spmi-regulator.c