https://github.com/torvalds/linux
Revision 4b2f67d756cf4a5ed8e8d11caa7dcea06c41a09e authored by Jesper Juhl on 23 February 2011, 22:45:55 UTC, committed by Liam Girdwood on 25 February 2011, 08:51:07 UTC
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>
1 parent 9ee291a
History
Tip revision: 4b2f67d756cf4a5ed8e8d11caa7dcea06c41a09e authored by Jesper Juhl on 23 February 2011, 22:45:55 UTC
regulator, mc13xxx: Remove pointless test for unsigned less than zero
Tip revision: 4b2f67d
File Mode Size
ad1816a
ad1848
cs423x
es1688
galaxy
gus
msnd
opti9xx
sb
wavefront
wss
Kconfig -rw-r--r-- 12.1 KB
Makefile -rw-r--r-- 784 bytes
adlib.c -rw-r--r-- 2.9 KB
als100.c -rw-r--r-- 10.5 KB
azt2320.c -rw-r--r-- 9.7 KB
cmi8330.c -rw-r--r-- 22.7 KB
es18xx.c -rw-r--r-- 69.3 KB
opl3sa2.c -rw-r--r-- 29.2 KB
sc6000.c -rw-r--r-- 18.2 KB
sscape.c -rw-r--r-- 32.9 KB

back to top