Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d4921914 authored by Gabriel A. Devenyi's avatar Gabriel A. Devenyi Committed by Dave Jones
Browse files

[PATCH] cpufreq-nforce2.c fix u32<0 test

Thanks to LinuxICC (http://linuxicc.sf.net

), a comparison of a u32 less
than 0 was found, this patch changes the variable to a signed int so that
comparison is meaningful.

Signed-off-by: default avatarGabriel A. Devenyi <ace@staticwave.ca>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarDave Jones <davej@redhat.com>
parent 537208c8
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -177,9 +177,10 @@ static unsigned int nforce2_fsb_read(int bootfsb)
 */
static int nforce2_set_fsb(unsigned int fsb)
{
	u32 pll, temp = 0;
	u32 temp = 0;
	unsigned int tfsb;
	int diff;
	int pll = 0;

	if ((fsb > max_fsb) || (fsb < NFORCE2_MIN_FSB)) {
		printk(KERN_ERR "cpufreq: FSB %d is out of range!\n", fsb);