mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[PATCH] get_cpu_sysdev() signedness fix
Doing (int < NR_CPUS) doesn't dtrt if it's negative.. Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
7423172a50
commit
a29d642a4a
2 changed files with 2 additions and 2 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Reference in a new issue