[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110224093717.GG8226@opensource.wolfsonmicro.com>
Date: Thu, 24 Feb 2011 09:37:17 +0000
From: Mark Brown <broonie@...nsource.wolfsonmicro.com>
To: Jesper Juhl <jj@...osbits.net>
Cc: linux-kernel@...r.kernel.org, Liam Girdwood <lrg@...mlogic.co.uk>,
Yong Shen <yong.shen@...aro.org>,
Sascha Hauer <s.hauer@...gutronix.de>,
Alberto Panizzo <maramaopercheseimorto@...il.com>
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@...osbits.net>
Acked-by: Mark Brown <broonie@...nsource.wolfsonmicro.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists