projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5273a25
)
ACPI / porocessor: Beautify code, pr->id is u32 which is never < 0
author
Chen Gang
<gang.chen@asianux.com>
Wed, 27 Feb 2013 04:27:30 +0000
(
04:27
+0000)
committer
Rafael J. Wysocki
<rafael.j.wysocki@intel.com>
Mon, 4 Mar 2013 13:23:39 +0000
(14:23 +0100)
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>
drivers/acpi/processor_driver.c
patch
|
blob
|
history
diff --git
a/drivers/acpi/processor_driver.c
b/drivers/acpi/processor_driver.c
index
df34bd0
..
bec717f
100644
(file)
--- a/
drivers/acpi/processor_driver.c
+++ b/
drivers/acpi/processor_driver.c
@@
-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