Skip to content

Commit

Permalink
ACPI / porocessor: Beautify code, pr->id is u32 which is never < 0
Browse files Browse the repository at this point in the history
pr->id is u32 which never < 0, so remove the redundant pr->id < 0
check from acpi_processor_add().

[rjw: Changelog]
Signed-off-by: Chen Gang <gang.chen@asianux.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Chen Gang authored and Rafael J. Wysocki committed Mar 4, 2013
1 parent 5273a25 commit 9b27516
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/acpi/processor_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ static int __cpuinit acpi_processor_add(struct acpi_device *device)
return 0;
#endif

BUG_ON((pr->id >= nr_cpu_ids) || (pr->id < 0));
BUG_ON(pr->id >= nr_cpu_ids);

/*
* Buggy BIOS check
Expand Down

0 comments on commit 9b27516

Please sign in to comment.