All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ] [Patch] check u32 < 0 in cpufreq-nforce2
@ 2005-12-14 12:26 Eric Sesterhenn / snakebyte
  2005-12-14 12:49 ` Jesper Juhl
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Eric Sesterhenn / snakebyte @ 2005-12-14 12:26 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 688 bytes --]

Hi,

arch/i386/kernel/cpu/cpufreq/cpufreq-nforce2.c declares
pll as u32 which is unsigned, and checks it agains < 0.
This patch changes it from u32 to s32 so the check
makes sense, nforce2_write_pll() and nforce2_calc_pll()
also expect/return a signed int.

Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>

--- arch/i386/kernel/cpu/cpufreq/cpufreq-nforce2.c.orig	2005-12-14 13:19:43.000000000 +0100
+++ arch/i386/kernel/cpu/cpufreq/cpufreq-nforce2.c	2005-12-14 13:23:40.000000000 +0100
@@ -177,7 +177,8 @@ static unsigned int nforce2_fsb_read(int
  */
 static int nforce2_set_fsb(unsigned int fsb)
 {
-	u32 pll, temp = 0;
+	u32 temp = 0;
+	s32 pll;
 	unsigned int tfsb;
 	int diff;
 



[-- Attachment #2: Type: text/plain, Size: 168 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-12-14 13:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-14 12:26 [KJ] [Patch] check u32 < 0 in cpufreq-nforce2 Eric Sesterhenn / snakebyte
2005-12-14 12:49 ` Jesper Juhl
2005-12-14 12:58 ` Eric Sesterhenn / snakebyte
2005-12-14 13:33 ` Dave Jones

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.