]> git.baikalelectronics.ru Git - kernel.git/commit
regulator, mc13xxx: Remove pointless test for unsigned less than zero
authorJesper Juhl <jj@chaosbits.net>
Wed, 23 Feb 2011 22:45:55 +0000 (23:45 +0100)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Fri, 25 Feb 2011 08:51:07 +0000 (08:51 +0000)
commit61cdf2d63dceeb1c631f83cd77f22b8da0a51969
tree35a48fdafe807d07bbf685b589c290a49b3958a4
parent4acdac0af254b1baeff3c2ab745c230bd0d2abb3
regulator, mc13xxx: Remove pointless test for unsigned less than zero

The variable 'val' is a 'unsigned int', so it can never be less than zero.
This fact makes the "val < 0" part of the test done in BUG_ON() in
mc13xxx_regulator_get_voltage() rather pointles since it can never have
any effect.
This patch removes the pointless test.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Acked-by: Alberto Panizzo <maramaopercheseimorto@gmail.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
drivers/regulator/mc13xxx-regulator-core.c