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
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 941 bytes
.mailmap -rw-r--r-- 4.0 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 91.7 KB
Kbuild -rw-r--r-- 2.4 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 186.8 KB
Makefile -rw-r--r-- 50.9 KB
README -rw-r--r-- 17.1 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top