]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: Appease smatch in regulator_register()
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 11 Apr 2012 09:19:12 +0000 (10:19 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 11 Apr 2012 09:19:12 +0000 (10:19 +0100)
commit1cdaea0b8777088cce3be053ee39a94fb288e05a
tree5470d156542e081920e5ff468da3121918eca3e6
parent37d8d9ec4b48e258858fbcc33e0242e37d952e9a
regulator: Appease smatch in regulator_register()

We don't support missing configs at all so segfaulting isn't that bad
but since we've got checks in the code move the dereference after them.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/core.c