* [PATCH] drivers/acpi: beautify code, pr->id is u32 which is never < 0
@ 2013-02-27 4:27 Chen Gang
0 siblings, 0 replies; only message in thread
From: Chen Gang @ 2013-02-27 4:27 UTC (permalink / raw)
To: lenb, rjw, linux-acpi
pr->id is u32 which never < 0
Signed-off-by: Chen Gang <gang.chen@asianux.com>
---
drivers/acpi/processor_driver.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/acpi/processor_driver.c b/drivers/acpi/processor_driver.c
index df34bd0..bec717f 100644
--- 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
--
1.7.7.6
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-02-27 4:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-27 4:27 [PATCH] drivers/acpi: beautify code, pr->id is u32 which is never < 0 Chen Gang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox