Messages in this thread | | | Date | Thu, 24 Feb 2011 09:37:17 +0000 | From | Mark Brown <> | Subject | Re: [PATCH] regulator, mc13xxx: Remove pointless test for unsigned less than zero |
| |
On Wed, Feb 23, 2011 at 11:45:55PM +0100, Jesper Juhl wrote: > 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: Mark Brown <broonie@opensource.wolfsonmicro.com>
| |