diff options
author | Andrew Morton <akpm@osdl.org> | 2006-03-08 08:53:25 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-03-20 22:42:59 +0100 |
commit | a29d642a4aa99c5234314ab2523281139226c231 (patch) | |
tree | 818996643addcea3963dd143a94ce3c293f225fd /drivers/base/cpu.c | |
parent | [PATCH] kobject_add_dir (diff) | |
download | linux-a29d642a4aa99c5234314ab2523281139226c231.tar.xz linux-a29d642a4aa99c5234314ab2523281139226c231.zip |
[PATCH] get_cpu_sysdev() signedness fix
Doing (int < NR_CPUS) doesn't dtrt if it's negative..
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/base/cpu.c')
-rw-r--r-- | drivers/base/cpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/cpu.c b/drivers/base/cpu.c index 07a7f97e1de9..29f3d7504da1 100644 --- a/drivers/base/cpu.c +++ b/drivers/base/cpu.c @@ -141,7 +141,7 @@ int __devinit register_cpu(struct cpu *cpu, int num, struct node *root) return error; } -struct sys_device *get_cpu_sysdev(int cpu) +struct sys_device *get_cpu_sysdev(unsigned cpu) { if (cpu < NR_CPUS) return cpu_sys_devices[cpu]; |